mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
There is no domainname element in utsname on OSX
This commit is contained in:
parent
a00f016648
commit
ee4a691627
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user