No domainname element in utsname on OSX

This commit is contained in:
Rasmus Lerdorf 2008-05-05 21:28:47 +00:00
parent c1b01f7318
commit f0f6e70406

View File

@ -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
}