[BACK]Return to patch-Modules___billiard_multiprocessing.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / parallel / py-billiard / patches

File: [cvs.NetBSD.org] / pkgsrc / parallel / py-billiard / patches / patch-Modules___billiard_multiprocessing.h (download)

Revision 1.1, Fri Feb 2 17:16:36 2018 UTC (6 years, 2 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1

py-billiard: Set _XOPEN_SOURCE correctly.

$NetBSD: patch-Modules___billiard_multiprocessing.h,v 1.1 2018/02/02 17:16:36 jperkin Exp $

Set _XOPEN_SOURCE correctly.

--- Modules/_billiard/multiprocessing.h.orig	2017-07-16 20:03:49.000000000 +0000
+++ Modules/_billiard/multiprocessing.h
@@ -3,10 +3,14 @@
 
 #define PY_SSIZE_T_CLEAN
 
-#ifdef __sun
+#if defined(__sun) && !defined(_XOPEN_SOURCE)
 /* The control message API is only available on Solaris 
    if XPG 4.2 or later is requested. */
+# if (__STDC_VERSION__-0 < 199901L)
 #define _XOPEN_SOURCE 500
+# else
+#define _XOPEN_SOURCE 600
+# endif
 #endif
 
 #include "Python.h"