]> granicus.if.org Git - php/commitdiff
MFH
authorfoobar <sniper@php.net>
Thu, 14 Jul 2005 00:15:35 +0000 (00:15 +0000)
committerfoobar <sniper@php.net>
Thu, 14 Jul 2005 00:15:35 +0000 (00:15 +0000)
acinclude.m4

index 14168b5292360fb93af244bc66b686d2332b03b5..5cc08e032a0c40c4fe8955b75700be3817106bef 100644 (file)
@@ -1100,7 +1100,8 @@ AC_DEFUN([PHP_REGEX],[
     AC_DEFINE(REGEX,0,[ ])
     dnl Check if field re_magic exists in struct regex_t
     AC_CACHE_CHECK([whether field re_magic exists in struct regex_t], ac_cv_regex_t_re_magic, [
-      AC_TRY_COMPILE([#include <regex.h>], [struct regex_t rt; rt.re_magic;],
+      AC_TRY_COMPILE([#include <sys/types.h>
+#include <regex.h>], [struct regex_t rt; rt.re_magic;],
       [ac_cv_regex_t_re_magic=yes], [ac_cv_regex_t_re_magic=no])
     ])
     if test "$ac_cv_regex_t_re_magic" = "yes"; then