summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 7f6be6e..ff29303 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -194,7 +194,10 @@ uint portable_pid()
return pid;
}
-static char **last_environ;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#else
+ static char **last_environ;
+#endif
void portable_setenv(const char *name,const char *value)
{