aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util-src/pposix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 6e7d250c..2908a5bf 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -21,6 +21,8 @@
POSIX support functions for Lua
*/
+#define MODULE_VERSION "0.3.0"
+
#include <stdlib.h>
#include <unistd.h>
#include <libgen.h>
@@ -230,5 +232,11 @@ int luaopen_util_pposix(lua_State *L)
lua_pushcfunction(L, lc_getpid);
lua_setfield(L, -2, "getpid");
+ lua_pushliteral(L, "pposix");
+ lua_setfield(L, -2, "_NAME");
+
+ lua_pushliteral(L, MODULE_VERSION);
+ lua_setfield(L, -2, "_VERSION");
+
return 1;
};