aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-11-26 00:19:31 +0000
committerMatthew Wild <mwild1@gmail.com>2015-11-26 00:19:31 +0000
commitab8006e6152db2531cfc65fbfa4de95efa570d6d (patch)
tree1584719c9dc1939806c4e9f35c3cc4bd7e368320 /util-src
parent237847b4d5a439a19d128f14f898f224a97bdf6e (diff)
parent451180d8a42fd3869be9b7002142467147da3203 (diff)
downloadprosody-ab8006e6152db2531cfc65fbfa4de95efa570d6d.tar.gz
prosody-ab8006e6152db2531cfc65fbfa4de95efa570d6d.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 02ea0087..1b69852d 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -642,6 +642,10 @@ int lc_uname(lua_State* L) {
lua_setfield(L, -2, "version");
lua_pushstring(L, uname_info.machine);
lua_setfield(L, -2, "machine");
+#ifdef _GNU_SOURCE
+ lua_pushstring(L, uname_info.domainname);
+ lua_setfield(L, -2, "domainname");
+#endif
return 1;
}