summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2008-09-03 18:10:30 (GMT)
committerJesse Noller <jnoller@gmail.com>2008-09-03 18:10:30 (GMT)
commitb814d6a7046d1138b624a049a35afcd82c255a4a (patch)
tree69256327f7a21c165bbb4eed3982a2252391e00c /Modules
parentac25fab12f95374cad4f11bbcbe5543183b98aa6 (diff)
downloadcpython-b814d6a7046d1138b624a049a35afcd82c255a4a.zip
cpython-b814d6a7046d1138b624a049a35afcd82c255a4a.tar.gz
cpython-b814d6a7046d1138b624a049a35afcd82c255a4a.tar.bz2
Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_multiprocessing/multiprocessing.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h
index 57eb7b4..ec5042c 100644
--- a/Modules/_multiprocessing/multiprocessing.h
+++ b/Modules/_multiprocessing/multiprocessing.h
@@ -37,6 +37,17 @@
#endif
/*
+ * Issue 3110 - Solaris does not define SEM_VALUE_MAX
+ */
+#ifndef SEM_VALUE_MAX
+# ifdef _SEM_VALUE_MAX
+# define SEM_VALUE_MAX _SEM_VALUE_MAX
+# else
+# define SEM_VALUE_MAX INT_MAX
+# endif
+#endif
+
+/*
* Make sure Py_ssize_t available
*/