openbsd-ports/converters/libiconv/patches/patch-lib_loop_wchar_h

16 lines
332 B
Plaintext

$OpenBSD: patch-lib_loop_wchar_h,v 1.2 2008/05/28 20:03:13 naddy Exp $
--- lib/loop_wchar.h.orig Mon Apr 11 12:03:36 2005
+++ lib/loop_wchar.h Mon Apr 11 13:52:35 2005
@@ -39,8 +39,10 @@
# endif
# endif
#else
-# ifndef mbstate_t
+# if !HAVE_MBSTATE_T
+# ifndef mbstate_t
typedef int mbstate_t;
+# endif
# endif
#endif