Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou

This commit is contained in:
Jesse Noller 2008-09-03 18:10:30 +00:00
parent ac25fab12f
commit b814d6a704
2 changed files with 14 additions and 0 deletions

View file

@ -36,6 +36,17 @@
# 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
*/