36fd36ec4c
3.6.1: - Logging max memory reached at INFO rather than WARNING - Pass arguments when wrapping sys.exit - Remove win32/py2k special - Ensure READY messages sent out by exiting worker are consumed prior to it actually existing. - Pass max_memory_per_child to child worker process - Fix compatibility with Python 2.7 on Windows
22 lines
587 B
C
22 lines
587 B
C
$NetBSD: patch-Modules___billiard_multiprocessing.h,v 1.2 2020/05/17 19:16:38 adam Exp $
|
|
|
|
Set _XOPEN_SOURCE correctly.
|
|
|
|
--- Modules/_billiard/multiprocessing.h.orig 2020-02-02 00:14:06.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"
|