summaryrefslogtreecommitdiff
path: root/lang/python23/patches/patch-al
blob: fa5272eb73c6dca0e4219c1998c3b8c0fb25df20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-al,v 1.1 2003/08/06 11:38:10 drochner Exp $

--- pyconfig.h.in.orig	2003-07-22 17:20:49.000000000 +0200
+++ pyconfig.h.in	2003-08-02 15:50:34.000000000 +0200
@@ -835,6 +835,10 @@
 /* Define _OSF_SOURCE to get the makedev macro. */
 #undef _OSF_SOURCE
 
+/* These defines disable needed library functions on NetBSD < 1.6T */
+/* ( _NETBSD_SOURCE doesn't exist prior to 1.6T ) */
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000)
+
 /* Define to 2 if the system does not provide POSIX.1 features except with
    this defined. */
 #undef _POSIX_1_SOURCE
@@ -845,18 +849,26 @@
 /* Define to 1 if you need to in order for `stat' and other things to work. */
 #undef _POSIX_SOURCE
 
+#endif
+
 /* Define if you have POSIX threads, and your system does not define that. */
 #undef _POSIX_THREADS
 
 /* Define to force use of thread-safe errno, h_errno, and other functions */
 #undef _REENTRANT
 
+/* These defines disable needed library functions on NetBSD < 1.6T */
+/* ( _NETBSD_SOURCE doesn't exists prior to 1.6T ) */
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000)
+
 /* Define to the level of X/Open that your system supports */
 #undef _XOPEN_SOURCE
 
 /* Define to activate Unix95-and-earlier features */
 #undef _XOPEN_SOURCE_EXTENDED
 
+#endif
+
 /* Define on FreeBSD to activate all library features */
 #undef __BSD_VISIBLE