While POSIX and SUS both mandate this variable existence, they don't say that
it needs to be declared anywhere and it actually doesn't seem to be declared
under Solaris when using Sun CC and so using it resulted in compilation errors.
Just declare it ourselves to avoid them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69564
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#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
+
+ // Both POSIX and Single UNIX Specification say that this variable must
+ // exist but not that it must be declared anywhere and, indeed, it's not
+ // declared in several common systems (some BSDs, Solaris with native CC).
extern char **environ;
-#endif
+
char **env = environ;
#endif