commit | 68e0135e4121b3e341aea7acf1cd017be74b50cf | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Sun Oct 17 02:14:36 2010 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Sun Oct 17 02:14:36 2010 +0000 |
tree | 07274405533df20a2d1337673d7c3a0602eae7c1 | |
parent | ed7916dd001d5d49b5be04a745c2f83826b27fe2 [diff] |
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.