summaryrefslogtreecommitdiff
path: root/luaext/lposix.c
diff options
context:
space:
mode:
Diffstat (limited to 'luaext/lposix.c')
-rw-r--r--luaext/lposix.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/luaext/lposix.c b/luaext/lposix.c
index e7e0335a6..270e2464f 100644
--- a/luaext/lposix.c
+++ b/luaext/lposix.c
@@ -366,7 +366,6 @@ static int Pputenv(lua_State *L) /** putenv(string) */
}
-#ifdef linux
static int Psetenv(lua_State *L) /** setenv(name,value,[over]) */
{
const char *name=luaL_checkstring(L, 1);
@@ -382,8 +381,6 @@ static int Punsetenv(lua_State *L) /** unsetenv(name) */
unsetenv(name);
return 0;
}
-#endif
-
static int Pgetenv(lua_State *L) /** getenv([name]) */
{
@@ -833,11 +830,8 @@ static const luaL_reg R[] =
{"unlink", Punlink},
{"utime", Putime},
{"wait", Pwait},
-
-#ifdef linux
{"setenv", Psetenv},
{"unsetenv", Punsetenv},
-#endif
{NULL, NULL}
};