blob: 15019c1e3ac8b7b9ed4b7fd00be02ce68f368c65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-da,v 1.1.1.1 2005/01/23 22:57:19 recht Exp $
--- Misc/setuid-prog.c.orig Thu Nov 25 13:11:28 2004
+++ Misc/setuid-prog.c Thu Nov 25 13:11:27 2004
@@ -70,6 +70,12 @@
#define environ _environ
#endif
+#if defined(__APPLE__)
+# include <sys/time.h>
+# include <crt_externs.h>
+# define environ (*_NSGetEnviron())
+#endif /* __APPLE__ */
+
/* don't change def_IFS */
char def_IFS[] = "IFS= \t\n";
/* you may want to change def_PATH, but you should really change it in */
|