diff options
author | Kim Alvefur <zash@zash.se> | 2015-11-25 20:43:29 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-11-25 20:43:29 +0100 |
commit | 8e63a2bd3bd94e13c9950543da3859d512838e11 (patch) | |
tree | d1bf76e5b97bf5694b79d22e77cfdae3518faf45 /util-src | |
parent | 44875fdc39c7a78bf0d6319e43c9d225bd9acbf5 (diff) | |
download | prosody-8e63a2bd3bd94e13c9950543da3859d512838e11.tar.gz prosody-8e63a2bd3bd94e13c9950543da3859d512838e11.zip |
util.pposix: Expose the uname GNU extension field 'domainname'
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; } |