diff options
author | jbj <devnull@localhost> | 2005-01-04 19:31:31 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2005-01-04 19:31:31 +0000 |
commit | 84ec406c35efeb8fb566ceab2fb1a4796cf7b447 (patch) | |
tree | c4e2c7a7c3c5d0ad6fc2dcd64921bb3d6a2483e5 /lua | |
parent | 6da6f7fc0a87818021bb07705450a29f46d7f14b (diff) | |
download | librpm-tizen-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.tar.gz librpm-tizen-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.tar.bz2 librpm-tizen-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.zip |
- mac os x patches (#133611, #133612, #134637).
CVS patchset: 7673
CVS date: 2005/01/04 19:31:31
Diffstat (limited to 'lua')
-rw-r--r-- | lua/local/lposix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/local/lposix.c b/lua/local/lposix.c index 64b0301a3..5c1566f86 100644 --- a/lua/local/lposix.c +++ b/lua/local/lposix.c @@ -438,7 +438,12 @@ static int Pgetenv(lua_State *L) /** getenv([name]) */ if (lua_isnone(L, 1)) { /*@-nestedextern -shadow@*/ + #ifdef __APPLE__ + #include <crt_externs.h> + #define environ (*_NSGetEnviron()) + #else extern char **environ; + #endif /* __APPLE__ */ /*@=nestedextern =shadow@*/ char **e; if (*environ==NULL) lua_pushnil(L); else lua_newtable(L); |