diff options
Diffstat (limited to 'lib/putenv.c')
-rw-r--r-- | lib/putenv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/putenv.c b/lib/putenv.c index 0e6e65f5c..ec5fe1a3c 100644 --- a/lib/putenv.c +++ b/lib/putenv.c @@ -34,10 +34,12 @@ #include <string.h> #include <unistd.h> -#if HAVE_GNU_LD +#if _LIBC +# if HAVE_GNU_LD # define environ __environ -#else +# else extern char **environ; +# endif #endif #if _LIBC |