From: Martin v. Löwis Date: Fri, 4 Jun 2010 17:18:42 +0000 (+0000) Subject: Issue #8864: Define _XOPEN_SOURCE on Solaris for the X-Git-Tag: v2.7rc1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26eec5877017f805dbc4edd3f82df6ddd54b9315;p=python Issue #8864: Define _XOPEN_SOURCE on Solaris for the multiprocessing module. --- diff --git a/Misc/NEWS b/Misc/NEWS index 8d69ebeb32..ca113aa8b0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -120,7 +120,8 @@ Tests Build ----- -- Issue #1759169: Drop _XOPEN_SOURCE on Solaris. +- Issues #1759169, #8864: Drop _XOPEN_SOURCE on Solaris, define it for + multiprocessing only. What's New in Python 2.7 beta 2? ================================ diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h index c1496343c3..14425de821 100644 --- a/Modules/_multiprocessing/multiprocessing.h +++ b/Modules/_multiprocessing/multiprocessing.h @@ -3,6 +3,12 @@ #define PY_SSIZE_T_CLEAN +#ifdef __sun +/* The control message API is only available on Solaris + if XPG 4.2 or later is requested. */ +#define _XOPEN_SOURCE 500 +#endif + #include "Python.h" #include "structmember.h" #include "pythread.h"