Diff

util-src/pposix.c @ 6947:032313f356c9

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Nov 2015 00:19:31 +0000
parent 6942:f12deb882148
child 7440:5424e24cdcb1
line wrap: on
line diff
--- a/util-src/pposix.c	Wed Nov 25 15:34:54 2015 +0100
+++ b/util-src/pposix.c	Thu Nov 26 00:19:31 2015 +0000
@@ -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;
 }