]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes #12935
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2011 19:06:11 +0000 (19:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2011 19:06:11 +0000 (19:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index 246d94f22c86227bfb3b816e0aba1c06f3421377..6037037de0c253fbf6f635ba7ef42ccad2246983 100644 (file)
@@ -580,6 +580,10 @@ bool wxGetEnvMap(wxEnvVariableHashMap *map)
 #else // non-MSVC non-Mac
     // Not sure if other compilers have _tenviron so use the (more standard)
     // ANSI version only for them.
+#ifdef __BSD__
+    // POSIX, but not in an include file
+    extern char **environ;
+#endif
     char **env = environ;
 #endif