summaryrefslogtreecommitdiff
path: root/lang/python26/patches/patch-pyconfig.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python26/patches/patch-pyconfig.h.in')
-rw-r--r--lang/python26/patches/patch-pyconfig.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/python26/patches/patch-pyconfig.h.in b/lang/python26/patches/patch-pyconfig.h.in
new file mode 100644
index 00000000000..497080bb29b
--- /dev/null
+++ b/lang/python26/patches/patch-pyconfig.h.in
@@ -0,0 +1,14 @@
+$NetBSD: patch-pyconfig.h.in,v 1.1 2011/12/16 17:04:18 hans Exp $
+
+--- pyconfig.h.in.orig 2009-10-27 13:30:12.000000000 +0100
++++ pyconfig.h.in 2011-11-13 14:37:13.053045656 +0100
+@@ -1036,7 +1036,9 @@
+ #undef _REENTRANT
+
+ /* Define to the level of X/Open that your system supports */
++#if !defined(__sun) || (defined(__sun) && !defined(_XOPEN_SOURCE))
+ #undef _XOPEN_SOURCE
++#endif
+
+ /* Define to activate Unix95-and-earlier features */
+ #undef _XOPEN_SOURCE_EXTENDED