fix environ on MAC
This commit is contained in:
@@ -247,7 +247,11 @@ pl_environ(term_t l)
|
||||
term_t vt = PL_new_term_ref();
|
||||
functor_t FUNCTOR_equal2 = PL_new_functor(PL_new_atom("="), 2);
|
||||
|
||||
#if HAVE__NSGETENVIRON
|
||||
for(e = _NSGetEnviron(); *e; e++)
|
||||
#else
|
||||
for(e = environ; *e; e++)
|
||||
#endif
|
||||
{ char *s = strchr(*e, '=');
|
||||
|
||||
if ( !s )
|
||||
|
Reference in New Issue
Block a user