Hi,
On several system (Solaris 2.6, openBSD 3.6, macOS X 10.2), the
mbstate_t structure is not detected by autoconf while system include files provide it. Autoconf does thus redefine this type which conflicts with real system headers, leading to compilation problem while parsing system headers.
The workaround on theses systems is to manually change the generated config.h by adding:
#define HAVE_MBSTATE_T 1
and commenting out:
/* #define mbstate_t int */
I have not seen any bug report about that problem, maybe I have missed something somewhere?
Cheers, Denis Corbin.