On Fri, Jun 13, 2008 at 9:21 AM, <skip at pobox.com> wrote: > In trying to solve a build problem with the multiprocessing code on > Solaris10 I visited multiprocessing.c in XEmacs and noticed the files all > appear to have Windows line endings. Should those maybe be stripped to > conform to the other Python source? Ow. definitely. > FWIW, it appears that Solaris doesn't define SEM_VALUE_MAX but does define > _SEM_VALUE_MAX in sys/params.h. > > .../Modules/_multiprocessing/multiprocessing.c: In function 'init_multiprocessing': > .../Modules/_multiprocessing/multiprocessing.c:253: error: 'SEM_VALUE_MAX' undeclared (first use in this function) > .../Modules/_multiprocessing/multiprocessing.c:253: error: (Each undeclared identifier is reported only once > .../Modules/_multiprocessing/multiprocessing.c:253: error: for each function it appears in.) > > On Windows the author simple #defines SEM_VALUE_MAX to be LONG_MAX. I used > a little cpp action to define it: > > #ifndef SEM_VALUE_MAX > # ifdef _SEM_VALUE_MAX > # define SEM_VALUE_MAX _SEM_VALUE_MAX > # else > # define SEM_VALUE_MAX INT_MAX > # endif > #endif Does this enable you to submit a patch? -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4