diff options
author | Antony Dovgal <tony2001@php.net> | 2007-02-09 10:15:46 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-02-09 10:15:46 +0000 |
commit | 2024ec6e2ab76bc7b5c749f7b0e9fe13fe9c3583 (patch) | |
tree | 6c535672e726002418305c140f318c4b2898492f | |
parent | d35449bbfb0c4feac3057c9aa3583f2bfc92782a (diff) | |
download | php-git-2024ec6e2ab76bc7b5c749f7b0e9fe13fe9c3583.tar.gz |
MFH: fix #40410 (ext/posix does not compile on MacOS 10.3.9)
-rw-r--r-- | ext/posix/posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index fe2c6631d0..baf72cbf29 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -884,7 +884,7 @@ PHP_FUNCTION(posix_getgrgid) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &gid) == FAILURE) { RETURN_FALSE; } -#ifdef HAVE_GETGRGID_R +#if defined(ZTS) && defined(HAVE_GETGRGID_R) && defined(_SC_GETGR_R_SIZE_MAX) grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); grbuf = emalloc(grbuflen); @@ -909,7 +909,7 @@ PHP_FUNCTION(posix_getgrgid) php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to convert posix group struct to array"); RETVAL_FALSE; } -#ifdef HAVE_GETGRGID_R +#if defined(ZTS) && defined(HAVE_GETGRGID_R) && defined(_SC_GETGR_R_SIZE_MAX) efree(grbuf); #endif } |