[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

Jim Schneider report at bugs.python.org
Thu Jul 14 20:28:36 CEST 2011


Jim Schneider <jim.schneider at dataflux.com> added the comment:

Martin - sys/_mbstate.h is only included if _INCLUDE__STDC_A1_SOURCE is defined.  The only way this gets defined in the vendor-provided include files is if _XOPEN_SOURCE is defined and is equal to 500, or __STDC_VERSION__ is defined and is greater than or equal to 199901.

I've attached a patch to broaden the _XOPEN_SOURCE case (as the test should clearly have been >=, not ==).  Defining __STDC_VERSION__ to 199901 or greater will also do the job, but it feels more like a hack than just fixing what's broken in the vendor include files.

----------

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


More information about the Python-bugs-list mailing list