]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 12:11:51 +0000 (12:11 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 12:11:51 +0000 (12:11 +0000)
ext/standard/crypt.c

index 683a7ccfbfe845f68b015bf2220467d42f810245..05221d931a53113c3074e93123b799d010534dca 100644 (file)
@@ -148,7 +148,7 @@ PHP_FUNCTION(crypt)
                salt[2] = '\0';
 #endif
        }
-#if defined(HAVE_CRYPT_R) && defined(_REENTRANT)
+#if defined(HAVE_CRYPT_R) && (defined(_REENTRANT) || defined(_THREAD_SAFE))
        {
 #if defined(CRYPT_R_STRUCT_CRYPT_DATA)
                struct crypt_data buffer;