blob: a856abd22260f714e5674af3c1aec2c0cc25ac08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$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
|