aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util-src/pposix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 10edbd71..da47cac2 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -835,6 +835,11 @@ int luaopen_util_pposix(lua_State *L) {
lua_newtable(L);
luaL_setfuncs(L, exports, 0);
+#ifdef ENOENT
+ lua_pushinteger(L, ENOENT);
+ lua_setfield(L, -2, "ENOENT");
+#endif
+
lua_pushliteral(L, "pposix");
lua_setfield(L, -2, "_NAME");