From: Hannes Magnusson Date: Fri, 12 Jan 2007 14:31:28 +0000 (+0000) Subject: Fix build X-Git-Tag: php-5.2.1RC3~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b7144d0b8dcb0bdfc1238b6957c86053d22cef8;p=php Fix build #Thanks Andy --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 2b201baa61..6886a56392 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -272,6 +272,7 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC) char user[32]; /* to try open the directory */ struct passwd *pw; #if defined(ZTS) && defined(HAVE_GETPWNAM_R) && defined(_SC_GETPW_R_SIZE_MAX) + struct passwd pwstruc; long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); char *pwbuf;