]> granicus.if.org Git - php/commitdiff
use the same ifdef anf get rid of "unused var" warnings
authorAntony Dovgal <tony2001@php.net>
Sat, 10 Feb 2007 00:50:29 +0000 (00:50 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 10 Feb 2007 00:50:29 +0000 (00:50 +0000)
ext/posix/posix.c

index 7645a3d89f00e331ab40d358c812774d527da21e..35e9bda16f50f004a5b8a0e79df501ee67e7af0c 100644 (file)
@@ -870,7 +870,7 @@ PHP_FUNCTION(posix_getgrnam)
 PHP_FUNCTION(posix_getgrgid)
 {
        long gid;
-#ifdef HAVE_GETGRGID_R
+#if defined(ZTS) && defined(HAVE_GETGRGID_R) && defined(_SC_GETGR_R_SIZE_MAX)
        int ret;
        struct group _g;
        struct group *retgrptr;