summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-10-11 04:35:07 +0000
committerjsorg71 <jsorg71>2005-10-11 04:35:07 +0000
commit69693b9a8effce591e172a93abc46f07e506dd80 (patch)
tree9c4c6a91932e0871fd7aee3cfbd0f1f64fdbedb2
parent180859a1ef1973f7e68e0290f76ca25365917a03 (diff)
downloadxrdp-proprietary-69693b9a8effce591e172a93abc46f07e506dd80.tar.gz
xrdp-proprietary-69693b9a8effce591e172a93abc46f07e506dd80.zip
bsd compatable clearenv
-rw-r--r--common/os_calls.c8
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
}