summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/posix/posix.c4
1 files changed, 4 insertions, 0 deletions
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
}
/* }}} */