File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2600,6 +2600,7 @@ AC_DEFUN([PHP_CRYPT_R_STYLE],
2600
2600
AC_CACHE_CHECK ( [ which data struct is used by crypt_r] , php_cv_crypt_r_style ,[
2601
2601
php_cv_crypt_r_style=none
2602
2602
AC_TRY_COMPILE ( [
2603
+ #define _REENTRANT 1
2603
2604
#include <crypt.h>
2604
2605
] ,[
2605
2606
CRYPTD buffer;
@@ -2609,6 +2610,7 @@ php_cv_crypt_r_style=cryptd)
2609
2610
2610
2611
if test "$php_cv_crypt_r_style" = "none"; then
2611
2612
AC_TRY_COMPILE ( [
2613
+ #define _REENTRANT 1
2612
2614
#include <crypt.h>
2613
2615
] ,[
2614
2616
struct crypt_data buffer;
@@ -2619,6 +2621,7 @@ php_cv_crypt_r_style=struct_crypt_data)
2619
2621
2620
2622
if test "$php_cv_crypt_r_style" = "none"; then
2621
2623
AC_TRY_COMPILE ( [
2624
+ #define _REENTRANT 1
2622
2625
#define _GNU_SOURCE
2623
2626
#include <crypt.h>
2624
2627
] ,[
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ PHP_FUNCTION(crypt)
148
148
salt [2 ] = '\0' ;
149
149
#endif
150
150
}
151
- #ifdef HAVE_CRYPT_R
151
+ #if defined( HAVE_CRYPT_R ) && defined( _REENTRANT )
152
152
{
153
153
#if defined(CRYPT_R_STRUCT_CRYPT_DATA )
154
154
struct crypt_data buffer ;
You can’t perform that action at this time.
0 commit comments