Index: theLink/libmsgque/sys.c
--- theLink/libmsgque/sys.c.orig	2010-01-28 10:37:47 +0100
+++ theLink/libmsgque/sys.c	2010-02-14 11:00:10 +0100
@@ -643,7 +643,8 @@
   pid_t pid;
 
 #if defined(HAVE_POSIX_SPAWN)
-  if (unlikely (posix_spawnp(&pid, name, NULL, NULL, (char *const *) argv, __environ) != 0)) {
+  extern char **environ;
+  if (unlikely (posix_spawnp(&pid, name, NULL, NULL, (char *const *) argv, environ) != 0)) {
     goto error;
   }
   goto ok;
