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

index eb749e2b2afd3a0356c40b6dceafc1aacf17e7c1..21093b825df70cd7e842abad2fbab6d4dc1961e7 100644 (file)
@@ -1101,7 +1101,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