18 lines
429 B
Text
18 lines
429 B
Text
$NetBSD: patch-af,v 1.1 2007/11/26 18:09:05 tron Exp $
|
|
|
|
--- gettext-tools/lib/execute.c.orig 2005-05-20 22:03:42.000000000 +0100
|
|
+++ gettext-tools/lib/execute.c 2007-11-26 17:51:20.000000000 +0000
|
|
@@ -62,8 +62,13 @@
|
|
#endif
|
|
|
|
#ifndef HAVE_ENVIRON_DECL
|
|
+#ifdef __APPLE__
|
|
+#include <crt_externs.h>
|
|
+#define environ (*_NSGetEnviron())
|
|
+#else
|
|
extern char **environ;
|
|
#endif
|
|
+#endif
|
|
|
|
#ifndef STDIN_FILENO
|
|
# define STDIN_FILENO 0
|