This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure b/configure | |
index f137cf1..13b04f0 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -6275,9 +6275,10 @@ cat confdefs.h >>conftest.$ac_ext | |
cat >>conftest.$ac_ext <<_ACEOF | |
/* end confdefs.h. */ | |
+#include <stdlib.h> | |
#include <sys/types.h> | |
#include <regex.h> | |
-main() { | |
+int main() { | |
regex_t patbuf; | |
exit (regcomp (&patbuf, "/hello/", 0) != 0); | |
} | |
diff --git a/configure.ac b/configure.ac | |
index 7fc81d4..46a29d0 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -447,6 +447,7 @@ if test no != "$with_posix_regex"; then | |
AC_CHECK_FUNCS(regcomp) | |
AC_MSG_CHECKING(if regcomp works) | |
AC_TRY_RUN([ | |
+#include <stdlib.h> | |
#include <sys/types.h> | |
#include <regex.h> | |
main() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment