diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-11-26 00:19:31 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-11-26 00:19:31 +0000 |
commit | 630248084188d2bbc01da354ec022db6b18aebc7 (patch) | |
tree | 1584719c9dc1939806c4e9f35c3cc4bd7e368320 /util-src | |
parent | c829b49476995a24a512c6aa1d7626df5acfc9d3 (diff) | |
parent | 0ad40f774a7fd8334289f9ef256e4ff082ce762d (diff) | |
download | prosody-630248084188d2bbc01da354ec022db6b18aebc7.tar.gz prosody-630248084188d2bbc01da354ec022db6b18aebc7.zip |
Merge 0.10->trunk
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/pposix.c | 4 |
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; } |