summaryrefslogtreecommitdiff
path: root/lang/python25/patches/patch-pyconfig.h.in
blob: 9169d6ed7f7488eef8d2852ef45caeac32d08d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-pyconfig.h.in,v 1.1 2011/12/16 17:04:17 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