From 69693b9a8effce591e172a93abc46f07e506dd80 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Tue, 11 Oct 2005 04:35:07 +0000 Subject: [PATCH] bsd compatable clearenv --- common/os_calls.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 #include +/* 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 }