diff options
author | foobar <sniper@php.net> | 2005-07-14 00:08:13 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-07-14 00:08:13 +0000 |
commit | 29894e44460620f29db7185516ef47a801de3590 (patch) | |
tree | 05d5c4a839cd5740dcc05cc06c4d59344f6325ec /acinclude.m4 | |
parent | 45f624adc414e2bd62d71324b8349f16d9708c28 (diff) | |
download | php-git-29894e44460620f29db7185516ef47a801de3590.tar.gz |
Fix the re_magic test by adding missing #include <sys/types.h>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index f285350ec0..7d045e88fb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2479,7 +2479,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 |