Skip to content

Commit

Permalink
One more attempt at environ
Browse files Browse the repository at this point in the history
  • Loading branch information
msteveb committed Sep 4, 2024
1 parent fc49e7b commit 3aeefb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jim.c
Original file line number Diff line number Diff line change
Expand Up @@ -16295,7 +16295,7 @@ char **Jim_GetEnviron(void)
return _environ;
#else
#if !defined(NO_ENVIRON_EXTERN)
extern char **environ;
extern char **environ;
#endif
return environ;
#endif
Expand All @@ -16305,6 +16305,8 @@ void Jim_SetEnviron(char **env)
{
#if defined(HAVE__NSGETENVIRON)
*_NSGetEnviron() = env;
#elif defined(_environ)
_environ = env;
#else
#if !defined(NO_ENVIRON_EXTERN)
extern char **environ;
Expand Down

0 comments on commit 3aeefb5

Please sign in to comment.