[issue11102] configure doesn't find "major()" on HP-UX v11.31

Oren Held report at bugs.python.org
Wed Feb 2 21:28:47 CET 2011


Oren Held <oren at held.org.il> added the comment:

Attaching a patch I've made for fixing the problem in HP-UX, simply by #including sys/types.h on the configure test..

1. I'm not sure it'll be good for all platforms; maybe we need more 'configure' magic here to make it #include <sys/types.h> on this configure test only when needed (e.g. HP-UX v3).

2. Once 'configure' decides to enable the "os.major" feature, 'make' simply compiles it well - I didn't have to fix things in Modules/posixmodule.c (apparently sys/types.h is already loaded). I'm not sure it's smart to count on it.

----------
keywords: +patch
Added file: http://bugs.python.org/file20653/python-configure-hpux-major-fix.patch

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


More information about the Python-bugs-list mailing list