From: Rasmus Lerdorf Date: Mon, 5 May 2008 21:28:47 +0000 (+0000) Subject: No domainname element in utsname on OSX X-Git-Tag: RELEASE_2_0_0b1~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0f6e70406ee48bfabfbfe3521504fed8c2b973f;p=php No domainname element in utsname on OSX --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 4196a753a7..01afc91cd3 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -468,7 +468,7 @@ PHP_FUNCTION(posix_uname) add_assoc_string(return_value, "release", u.release, 1); add_assoc_string(return_value, "version", u.version, 1); add_assoc_string(return_value, "machine", u.machine, 1); -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) && !defined(DARWIN) add_assoc_string(return_value, "domainname", u.domainname, 1); #endif }