Software /
code /
prosody
Changeset
6942:f12deb882148
util.pposix: Expose the uname GNU extension field 'domainname'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Nov 2015 20:43:29 +0100 |
parents | 6941:33fbc835697d |
children | 6943:0a31ec3193f0 |
files | util-src/pposix.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/pposix.c Tue Nov 24 19:31:37 2015 +0100 +++ b/util-src/pposix.c Wed Nov 25 20:43:29 2015 +0100 @@ -642,6 +642,10 @@ 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; }