There is no domainname element in utsname on OSX

This commit is contained in:
Rasmus Lerdorf 2008-05-05 21:26:46 +00:00
parent a00f016648
commit ee4a691627

View File

@ -468,7 +468,8 @@ 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
}