]> granicus.if.org Git - python/commitdiff
Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou
authorJesse Noller <jnoller@gmail.com>
Wed, 3 Sep 2008 18:10:30 +0000 (18:10 +0000)
committerJesse Noller <jnoller@gmail.com>
Wed, 3 Sep 2008 18:10:30 +0000 (18:10 +0000)
Misc/NEWS
Modules/_multiprocessing/multiprocessing.h

index 9f5884b9d53e5c14f363344e4b7d4559f2f24428..b4f02b2c92658a2af1aa95ea5c6908d4222711c3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -83,6 +83,9 @@ Library
 - Issue #3708: os.urandom no longer goes into an infinite loop when passed a
   non-integer floating point number.
 
+- Issue #3110: multiprocessing fails to compiel on solaris 10 due to missing 
+  SEM_VALUE_MAX.
+
 Extension Modules
 -----------------
 
index 57eb7b4b98347f535fbf7402d8faa73cc912e2ca..ec5042c9d6424a5a9941558b5fc02b85229e6349 100644 (file)
 #  define INVALID_HANDLE_VALUE (-1)
 #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
  */