From: Stefan Csomor Date: Fri, 18 Feb 2011 19:06:11 +0000 (+0000) Subject: fixes #12935 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eeb415ecbe0b8f483bb5d6f364319c5bc4b593b0?ds=inline fixes #12935 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 246d94f22c..6037037de0 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -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