Include <stdlib.h> for envion on Windows (cherry picked from commit 5874d104f52a0ef4d...
authorChristian Ehrlicher <Ch.Ehrlicher@gmx.de>
Mon, 27 Apr 2009 12:34:45 +0000 (14:34 +0200)
committerunknown <Administrator@.(none)>
Sun, 29 Nov 2009 18:30:39 +0000 (19:30 +0100)
dbus/dbus-sysdeps.c

index ccd80cc..430dd2d 100644 (file)
@@ -51,7 +51,11 @@ _DBUS_DEFINE_GLOBAL_LOCK (win_fds);
 _DBUS_DEFINE_GLOBAL_LOCK (sid_atom_cache);
 _DBUS_DEFINE_GLOBAL_LOCK (system_users);
 
+#ifdef DBUS_WIN
+  #include <stdlib.h>
+#else
 extern char **environ;
+#endif
 
 /**
  * @defgroup DBusSysdeps Internal system-dependent API