mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
No domainname element in utsname on OSX
This commit is contained in:
parent
c1b01f7318
commit
f0f6e70406
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user