summaryrefslogtreecommitdiff
path: root/lang/python27/patches/patch-Modules___multiprocessing_multiprocessing.h
blob: 1cfd3cc576b587534853a6155916d627bf7048be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-Modules___multiprocessing_multiprocessing.h,v 1.1 2017/05/22 16:45:19 jperkin Exp $

Only define _XOPEN_SOURCE if we aren't already using newer.

--- Modules/_multiprocessing/multiprocessing.h.orig	2016-12-17 20:05:07.000000000 +0000
+++ Modules/_multiprocessing/multiprocessing.h
@@ -3,7 +3,7 @@
 
 #define PY_SSIZE_T_CLEAN
 
-#ifdef __sun
+#if defined(__sun) && !(__STDC_VERSION__ - 0 >= 199901L)
 /* The control message API is only available on Solaris 
    if XPG 4.2 or later is requested. */
 #define _XOPEN_SOURCE 500