# HG changeset patch # User Kim Alvefur # Date 1488384228 -3600 # Node ID b009c27818c65a90bd6ac3f0469430969de9964a # Parent 209503ee3aaafc8c75a95bcbbe29f6f962bd0f36 util.pposix: Expose ENOENT constant (usually 2, but you never know) diff -r 209503ee3aaa -r b009c27818c6 util-src/pposix.c --- a/util-src/pposix.c Wed Mar 01 16:44:59 2017 +0100 +++ b/util-src/pposix.c Wed Mar 01 17:03:48 2017 +0100 @@ -835,6 +835,11 @@ 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");