summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2008-09-03 18:22:19 (GMT)
committerJesse Noller <jnoller@gmail.com>2008-09-03 18:22:19 (GMT)
commit338f5786eac83f473bcdde27fea6280c762fd92d (patch)
tree9e37ca21b919c5749a9f81bdb51d72808134d0cf /Modules
parenta786f2b4980020bb54d6fdfc3e4d116497eb553d (diff)
downloadcpython-338f5786eac83f473bcdde27fea6280c762fd92d.zip
cpython-338f5786eac83f473bcdde27fea6280c762fd92d.tar.gz
cpython-338f5786eac83f473bcdde27fea6280c762fd92d.tar.bz2
merge 66184 to fix issue3110 to py3k
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
*/