projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8b487
)
util.pposix: Expose the uname GNU extension field 'domainname'
author
Kim Alvefur
<zash@zash.se>
Wed, 25 Nov 2015 19:43:29 +0000
(20:43 +0100)
committer
Kim Alvefur
<zash@zash.se>
Wed, 25 Nov 2015 19:43:29 +0000
(20:43 +0100)
util-src/pposix.c
patch
|
blob
|
history
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index 02ea00871a7e2e3fea1c3df83bc01b8bff973c86..1b69852d2a703cacf2619adeffe821ad5ddb3b94 100644
(file)
--- 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;
}