aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-16 04:57:36 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-16 04:57:36 +0000
commit43c5e285582173e2a5791501694953dcbbd4cae0 (patch)
tree62ed5bb46a58e63090a560979db99c67754b98d4 /util-src
parentda06bc06ba725b09970882d60947965a8a90a2cf (diff)
downloadprosody-43c5e285582173e2a5791501694953dcbbd4cae0.tar.gz
prosody-43c5e285582173e2a5791501694953dcbbd4cae0.zip
pposix: Add _NAME and _VERSION
Diffstat (limited to 'util-src')
-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;
};