diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-20 11:46:42 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-20 11:46:42 +0300 |
commit | a8ba86f05bfdff3eda650d49a4aaab7bf0b4abf5 (patch) | |
tree | 555e9a60e24b61a5c3d7354f53558cab3e44d4f2 /luaext/lposix.c | |
parent | f7707ad3ff279fe09e8885b3a2ea2b01f629950b (diff) | |
download | rpm-a8ba86f05bfdff3eda650d49a4aaab7bf0b4abf5.tar.gz rpm-a8ba86f05bfdff3eda650d49a4aaab7bf0b4abf5.tar.bz2 rpm-a8ba86f05bfdff3eda650d49a4aaab7bf0b4abf5.zip |
setenv() + unsetenv() are always available in rpm
Diffstat (limited to 'luaext/lposix.c')
-rw-r--r-- | luaext/lposix.c | 6 |
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} }; |