[issue3149] multiprocessing build fails on Solaris 10

Jean Brouwers report at bugs.python.org
Fri Jun 20 17:34:33 CEST 2008


Jean Brouwers <MrJean1 at Gmail.com> added the comment:

One more comment on SEM_VALUE_MAX for Solaris.  _POSIX_SEM_VALUE_MAX is 
defined in <limits.h> on Solaris and that header file must be included.  
Better might be to use _SEM_VALUE_MAX which is defined in <param.h> and 
that header files needs to be included as well.  Rerhaps, INT_MAX is 
best.

/usr/include/limits.h:#define   _POSIX_SEM_NSEMS_MAX      256
/usr/include/limits.h:#define   _POSIX_SEM_VALUE_MAX    32767

/usr/include/sys/param.h:#define        _SEM_NSEMS_MAX          INT_MAX
/usr/include/sys/param.h:#define        _SEM_VALUE_MAX          INT_MAX


Btw, the value of _POSIX_SEM_MAX_VALUE is 32767.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3149>
_______________________________________


More information about the Python-bugs-list mailing list