2011-10-27 Jakub Jelinek * prims.cc (__NO_CTYPE): For glibc define this before including ctype.h. --- libjava/prims.cc 2009-04-28 06:02:30.000000000 +0200 +++ libjava/prims.cc 2011-10-27 12:57:42.748752380 +0200 @@ -38,6 +38,14 @@ details. */ #endif #ifndef DISABLE_GETENV_PROPERTIES +#ifdef __GLIBC__ +/* glibc 2.15+ provides even for C++ inline optimized ::isspace etc. + Unfortunately those inlines are throw (), and call a function pointer + (which is throw () too, but with -fnon-call-exceptions this results + in a __cxa_call_unexpected call. This macro disables the optimized + version. */ +#define __NO_CTYPE 1 +#endif #include #include #define PROCESS_GCJ_PROPERTIES process_gcj_properties()