Does this patch fix your problem?

2008-03-29  Paul Eggert  <[EMAIL PROTECTED]>

        * lib/wchar.in.h [defined __need_mbstate_t]: Just include wchar.h
        in this case.  Problem reported by Erik Benada.

diff --git a/lib/wchar.in.h b/lib/wchar.in.h
index 924a338..d7a1b5d 100644
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -26,6 +26,14 @@
  * the declaration of wcwidth().
  */
 
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files.  */
+
[EMAIL PROTECTED]@ @NEXT_WCHAR_H@
+
+#else
+/* Normal invocation convention.  */
+
 #ifndef _GL_WCHAR_H
 
 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -80,3 +88,4 @@ extern int wcwidth (int /* actually wchar_t */);
 
 #endif /* _GL_WCHAR_H */
 #endif /* _GL_WCHAR_H */
+#endif


Reply via email to