diff options
Diffstat (limited to 'common/os_calls.c')
-rw-r--r-- | common/os_calls.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index ecdc2f33..4d78887c 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -49,6 +49,12 @@ #include <stdarg.h> #include <stdio.h> +/* for clearenv() */ +#if defined(_WIN32) +#else +extern char** environ; +#endif + /*****************************************************************************/ void* g_malloc(int size, int zero) @@ -870,7 +876,7 @@ g_clearenv(void) { #if defined(_WIN32) #else - clearenv(); + environ = 0; #endif } |