Browse Source

Fixed extern char** environ is not defined on BSD platforms (bug #4834).

(Old svn revision: 29341)
upstream/xfce4-panel-4.10.1
Nick Schermer 13 years ago
parent
commit
efbe3420e6
  1. 4
      NEWS
  2. 10
      plugins/launcher/launcher-exec.c

4
NEWS

@ -1,3 +1,7 @@
x.x.xx
======
- Fixed extern char** environ is not defined on BSD platforms (bug #4834).
4.5.93
======
- Cache tooltip icons. Since gtk queries it a lot, resulting in too many

10
plugins/launcher/launcher-exec.c

@ -63,6 +63,16 @@
#include <libsn/sn.h>
#endif
#ifdef __APPLE__
/* apple doesn't have a environ symbol */
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#elif !defined(__USE_GNU)
/* when __USE_GNU is defined environ is defined in unistd.h
* this to avoid a redundant redeclaration */
extern gchar **environ;
#endif
#ifdef HAVE_LIBSTARTUP_NOTIFICATION

Loading…
Cancel
Save