$NetBSD: patch-ac,v 1.12 2005/04/15 13:47:25 wiz Exp $

--- gdk/x11/gdkspawn-x11.c.orig	2005-03-16 04:25:09.000000000 +0100
+++ gdk/x11/gdkspawn-x11.c
@@ -28,6 +28,11 @@
 #include <gdk/gdk.h>
 #include "gdkalias.h"
 
+#if defined(__APPLE__)
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#endif
+
 extern char **environ;
 
 /**
