summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing/multiprocessing.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-06-04 17:20:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-06-04 17:20:56 (GMT)
commitec78d0ae0e064d1ee9f2fa418d7fa3adba717e48 (patch)
tree33ce9578b87eba0d0d57124501ad9e31e4dbb4d5 /Modules/_multiprocessing/multiprocessing.h
parent447f82f95ff911e86ace0887af3e8dcee5a2946a (diff)
downloadcpython-ec78d0ae0e064d1ee9f2fa418d7fa3adba717e48.zip
cpython-ec78d0ae0e064d1ee9f2fa418d7fa3adba717e48.tar.gz
cpython-ec78d0ae0e064d1ee9f2fa418d7fa3adba717e48.tar.bz2
Merged revisions 81692 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81692 | martin.v.loewis | 2010-06-04 19:18:42 +0200 (Fr, 04 Jun 2010) | 3 lines Issue #8864: Define _XOPEN_SOURCE on Solaris for the multiprocessing module. ........
Diffstat (limited to 'Modules/_multiprocessing/multiprocessing.h')
-rw-r--r--Modules/_multiprocessing/multiprocessing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h
index c149634..14425de 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"