[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mbstate_t on HP-UX 11.11
From: |
Eric Blake |
Subject: |
Re: mbstate_t on HP-UX 11.11 |
Date: |
Sat, 20 Dec 2008 06:12:15 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666 |
-----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 <wchar.h> 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?
>
> 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 gnulib 'extensions' module as well.
> Ensure mbstate_t is defined on HP-UX 11.11.
> * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
> AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
This begs the question - should autoconf's AC_USE_SYSTEM_EXTENSIONS also
be doing this, rather than just relying on _AC_PROG_CC_C89? Also, your
proposed patch only touched the C89 tests; what about C99?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklM7y8ACgkQ84KuGfSFAYAS+QCfc3h5tdVZr0rNr+C3udQyD8M7
OHEAn1W36O9lBP4426a/OuB9yGpypB7+
=5xWu
-----END PGP SIGNATURE-----