.
[gnulib.git] / lib / rpmatch.c
index 55d3bba..868f714 100644 (file)
@@ -21,10 +21,20 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #endif
 
 #if STDC_HEADERS || _LIBC
+# include <stddef.h>
 # include <stdlib.h>
+#else
+# ifndef NULL
+#  define NULL 0
+# endif
 #endif
 
-#include <regex.h>
+#include <sys/types.h>
+#ifdef WITH_REGEX
+# include <regex.h>
+#else
+# include <rx.h>
+#endif
 
 #if ENABLE_NLS
 # include <libintl.h>