]> mj.ucw.cz Git - libucw.git/blobdiff - lib/regex.c
Added the local copy of the regex library back.
[libucw.git] / lib / regex.c
index cfabd4d0b6043cc7a63884fc4294a8cefe922871..270fb590b5e7fc8873afefc2d5c898c97a1d1287 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>
 
-#ifdef CONFIG_POSIX_REGEX
+#if defined(CONFIG_OWN_REGEX) || defined(CONFIG_POSIX_REGEX)
 
 /* POSIX regular expression library */
 
 
 /* POSIX regular expression library */
 
+#ifdef CONFIG_OWN_REGEX
+#include "lib/regex/regex-sh.h"
+#else
 #include <regex.h>
 #include <regex.h>
+#endif
 
 struct regex {
   regex_t rx;
 
 struct regex {
   regex_t rx;