pkgsrc/lang/python23/patches/patch-da
recht 97217b7045 Add patches from darwinports/fink to make the posixmodule work on Darwin/
OSX and build the libpython as dynamic library.
While at it also fix the PLIST for Darwin/OSX.
2004-11-28 13:33:19 +00:00

17 lines
485 B
Text

$NetBSD: patch-da,v 1.1 2004/11/28 13:33: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 */