diff options
Diffstat (limited to 'gl/tests/putenv.c')
-rw-r--r-- | gl/tests/putenv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gl/tests/putenv.c b/gl/tests/putenv.c index 68e5fec31b..3c332791bb 100644 --- a/gl/tests/putenv.c +++ b/gl/tests/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 |