tony2001                Mon Jul  9 18:10:17 2007 UTC

  Modified files:              
    /php-src/ext/standard       filestat.c 
  Log:
  fix build on b0rked OSes (see #41920)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/filestat.c?r1=1.160&r2=1.161&diff_format=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.160 
php-src/ext/standard/filestat.c:1.161
--- php-src/ext/standard/filestat.c:1.160       Mon Feb 26 20:35:41 2007
+++ php-src/ext/standard/filestat.c     Mon Jul  9 18:10:17 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.160 2007/02/26 20:35:41 tony2001 Exp $ */
+/* $Id: filestat.c,v 1.161 2007/07/09 18:10:17 tony2001 Exp $ */
 
 #include "php.h"
 #include "fopen_wrappers.h"
@@ -434,7 +434,7 @@
        if (Z_TYPE_P(group) == IS_LONG) {
                gid = (gid_t)Z_LVAL_P(group);
        } else {
-#if HAVE_GETGRNAM_R
+#if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX) 
                struct group gr;
                struct group *retgrptr;
                int grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to