From: Hartmut Holzgraefe Date: Mon, 9 Oct 2000 15:12:34 +0000 (+0000) Subject: added support for GNU-specific domainname field in uname X-Git-Tag: php-4.0.3~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbc37db2f347dc642b04e9c98f5b098e9a8223e5;p=php added support for GNU-specific domainname field in uname --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 0eba167dab..143913bcc8 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -515,6 +515,10 @@ 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 + add_assoc_string(return_value, "domainname", u.domainname, 1); +#endif } /* }}} */