cvs: php-src(PHP_5_2) / acinclude.m4 /ext/standard crypt.c

From: Date: Tue, 12 Dec 2006 12:06:37 +0000
Subject: cvs: php-src(PHP_5_2) / acinclude.m4 /ext/standard crypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-42071@lists.php.net to get a copy of this message
tony2001 Tue Dec 12 12:06:37 2006 UTC Modified files: (Branch: PHP_5_2) /php-src acinclude.m4 /php-src/ext/standard crypt.c Log: MFH: missing part of the fix for #39795 http://cvs.php.net/viewvc.cgi/php-src/acinclude.m4?r1=1.332.2.14.2.8&r2=1.332.2.14.2.9&diff_format=u Index: php-src/acinclude.m4 diff -u php-src/acinclude.m4:1.332.2.14.2.8 php-src/acinclude.m4:1.332.2.14.2.9 --- php-src/acinclude.m4:1.332.2.14.2.8 Tue Dec 12 10:16:06 2006 +++ php-src/acinclude.m4 Tue Dec 12 12:06:37 2006 @@ -1,5 +1,5 @@ dnl -dnl $Id: acinclude.m4,v 1.332.2.14.2.8 2006/12/12 10:16:06 tony2001 Exp $ +dnl $Id: acinclude.m4,v 1.332.2.14.2.9 2006/12/12 12:06:37 tony2001 Exp $ dnl dnl This file contains local autoconf functions. dnl @@ -2600,6 +2600,7 @@ AC_CACHE_CHECK([which data struct is used by crypt_r], php_cv_crypt_r_style,[ php_cv_crypt_r_style=none AC_TRY_COMPILE([ +#define _REENTRANT 1 #include <crypt.h> ],[ CRYPTD buffer; @@ -2609,6 +2610,7 @@ if test "$php_cv_crypt_r_style" = "none"; then AC_TRY_COMPILE([ +#define _REENTRANT 1 #include <crypt.h> ],[ struct crypt_data buffer; @@ -2619,6 +2621,7 @@ if test "$php_cv_crypt_r_style" = "none"; then AC_TRY_COMPILE([ +#define _REENTRANT 1 #define _GNU_SOURCE #include <crypt.h> ],[ http://cvs.php.net/viewvc.cgi/php-src/ext/standard/crypt.c?r1=1.62.2.1.2.3&r2=1.62.2.1.2.4&diff_format=u Index: php-src/ext/standard/crypt.c diff -u php-src/ext/standard/crypt.c:1.62.2.1.2.3 php-src/ext/standard/crypt.c:1.62.2.1.2.4 --- php-src/ext/standard/crypt.c:1.62.2.1.2.3 Tue Dec 12 07:38:04 2006 +++ php-src/ext/standard/crypt.c Tue Dec 12 12:06:37 2006 @@ -17,7 +17,7 @@ | Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: crypt.c,v 1.62.2.1.2.3 2006/12/12 07:38:04 tony2001 Exp $ */ +/* $Id: crypt.c,v 1.62.2.1.2.4 2006/12/12 12:06:37 tony2001 Exp $ */ #include <stdlib.h> #include "php.h" @@ -148,7 +148,7 @@ salt[2] = '\0'; #endif } -#ifdef HAVE_CRYPT_R +#if defined(HAVE_CRYPT_R) && defined(_REENTRANT) { #if defined(CRYPT_R_STRUCT_CRYPT_DATA) struct crypt_data buffer;

« previous php.cvs (#42071) next »