Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 338f578

Browse files
committed
merge 66184 to fix issue3110 to py3k
1 parent a786f2b commit 338f578

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
@@ -71,6 +71,9 @@ Library
7171

7272
- The deprecation warnings for the camelCase threading API names were removed.
7373

74+
- Issue #3110: multiprocessing fails to compiel on solaris 10 due to missing
75+
SEM_VALUE_MAX.
76+
7477
Extension Modules
7578
-----------------
7679

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)