diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 02:14:36 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-10-17 02:14:36 (GMT) |
commit | 68e0135e4121b3e341aea7acf1cd017be74b50cf (patch) | |
tree | 07274405533df20a2d1337673d7c3a0602eae7c1 /Include/memoryobject.h | |
parent | ed7916dd001d5d49b5be04a745c2f83826b27fe2 (diff) | |
download | cpython-68e0135e4121b3e341aea7acf1cd017be74b50cf.zip cpython-68e0135e4121b3e341aea7acf1cd017be74b50cf.tar.gz cpython-68e0135e4121b3e341aea7acf1cd017be74b50cf.tar.bz2 |
Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined
as (~0U) on NetBSD which was causing it to appear as -1 when used as
a signed int for _multprocessing.SemLock.SEM_VALUE_MAX. This works
around the problem by substituting INT_MAX on systems where it appears
negative when used as an int.
Diffstat (limited to 'Include/memoryobject.h')
0 files changed, 0 insertions, 0 deletions