Eric Blake wrote:
> this would be
> better written as a compile-time test that sees whether mbstate_t is
> visible first without, then with -D_XOPEN_SOURCE=500 added to CFLAGS, in
> case HP (or gcc fixincludes) fixes the problem, or in case someone else
> has a similar issue.
This has the potentia
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 12/20/2008 12:12 PM:
> 2008-12-20 Bruno Haible
>
> Ensure mbstate_t is defined on HP-UX 11.11 when AC_USE_SYSTEM_EXTENSIONS
> is used.
> * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
>
> > Indeed. The mbstate_t type and mbsinit etc. functions were not part of
> > C89 + appendices, they were introduced in C99. Therefore, the
> > -D_XOPEN_SOURCE=500 option should better be added to the detection of flags
> > for C99, not C89.
Ben Pfaff corrected me: mbstate_t, mbsinit etc. are par
Bruno Haible writes:
>> Also, your proposed patch only touched the C89 tests; what about C99?
>
> Indeed. The mbstate_t type and mbsinit etc. functions were not part of
> C89 + appendices, they were introduced in C99. Therefore, the
> -D_XOPEN_SOURCE=500 option should better be added to the detec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 12/20/2008 7:40 AM:
> Indeed. The mbstate_t type and mbsinit etc. functions were not part of
> C89 + appendices, they were introduced in C99. Therefore, the
> -D_XOPEN_SOURCE=500 option should better be added to the detecti
Hi Eric,
> > On HP-UX 11.11, mbstate_t is not defined by unless _XOPEN_SOURCE
> > is
> > set to 500. (Even when _HPUX_SOURCE is set!)
>
> What happens if _XOPEN_SOURCE is set to something larger than 500,
> implying a newer standards version?
Then it is as if the flag was not present at all. O
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 12/20/2008 5:43 AM:
> On HP-UX 11.11, mbstate_t is not defined by unless _XOPEN_SOURCE is
> set to 500. (Even when _HPUX_SOURCE is set!)
What happens if _XOPEN_SOURCE is set to something larger than 500,
implying a newer
On HP-UX 11.11, mbstate_t is not defined by unless _XOPEN_SOURCE is
set to 500. (Even when _HPUX_SOURCE is set!)
I have submitted a patch so that autoconf sets this flag by default. But there
are so many INSTALL files which only recommend CC="cc -Ae", that IMO this
needs to be handled by the gnul