Skip to content

Commit 802422d

Browse files
author
jesse.noller
committed
Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou
git-svn-id: http://svn.python.org/projects/python/trunk@66184 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent b119763 commit 802422d

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ Library
8383
- Issue #3708: os.urandom no longer goes into an infinite loop when passed a
8484
non-integer floating point number.
8585

86+
- Issue #3110: multiprocessing fails to compiel on solaris 10 due to missing
87+
SEM_VALUE_MAX.
88+
8689
Extension Modules
8790
-----------------
8891

Modules/_multiprocessing/multiprocessing.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@
3636
# define INVALID_HANDLE_VALUE (-1)
3737
#endif
3838

39+
/*
40+
* Issue 3110 - Solaris does not define SEM_VALUE_MAX
41+
*/
42+
#ifndef SEM_VALUE_MAX
43+
# ifdef _SEM_VALUE_MAX
44+
# define SEM_VALUE_MAX _SEM_VALUE_MAX
45+
# else
46+
# define SEM_VALUE_MAX INT_MAX
47+
# endif
48+
#endif
49+
3950
/*
4051
* Make sure Py_ssize_t available
4152
*/

0 commit comments

Comments
 (0)