From: Hannes Magnusson Date: Fri, 12 Jan 2007 14:34:46 +0000 (+0000) Subject: MFB: Fix build (wharmby at uk dot ibm dot com) X-Git-Tag: RELEASE_1_0_0RC1~285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61b4b4b628ff1d7e6f7e3d97ebf8aceaff0715b7;p=php MFB: Fix build (wharmby at uk dot ibm dot com) --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index b638c55a19..d6d175c518 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -280,6 +280,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;