From: foobar Date: Tue, 28 Sep 2004 20:42:36 +0000 (+0000) Subject: - Fixed bug #30205 (Missing in crypt() configure test). X-Git-Tag: php-4.3.10RC1~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6a4f91836549225a5ac73427ebdc762321abb15;p=php - Fixed bug #30205 (Missing in crypt() configure test). --- diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index bafcefa87e..62d84d0ab8 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -67,6 +67,10 @@ AC_DEFUN(AC_CRYPT_CAP,[ AC_CACHE_CHECK(for standard DES crypt, ac_cv_crypt_des,[ AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + #if HAVE_CRYPT_H #include #endif @@ -94,6 +98,10 @@ main() { AC_CACHE_CHECK(for extended DES crypt, ac_cv_crypt_ext_des,[ AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + #if HAVE_CRYPT_H #include #endif @@ -121,6 +129,10 @@ main() { AC_CACHE_CHECK(for MD5 crypt, ac_cv_crypt_md5,[ AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + #if HAVE_CRYPT_H #include #endif @@ -160,6 +172,10 @@ main() { AC_CACHE_CHECK(for Blowfish crypt, ac_cv_crypt_blowfish,[ AC_TRY_RUN([ +#if HAVE_UNISTD_H +#include +#endif + #if HAVE_CRYPT_H #include #endif