openbsd-ports/converters/libiconv/patches/patch-aclocal_m4
espie 51664851ca try harder to avoid defining mbstate_t if there's one defined already.
remove some dependencies on the type name.
Regen patch.
2005-04-16 21:10:22 +00:00

15 lines
588 B
Plaintext

$OpenBSD: patch-aclocal_m4,v 1.1 2005/04/16 21:10:22 espie Exp $
--- aclocal.m4.orig Mon Apr 11 13:47:20 2005
+++ aclocal.m4 Mon Apr 11 13:50:46 2005
@@ -9209,6 +9209,10 @@ AC_DEFUN([AC_MBSTATE_T],
[mbstate_t x; return sizeof x;],
ac_cv_type_mbstate_t=yes,
ac_cv_type_mbstate_t=no)])
+ if test $am_cv_type_mbstate_t = yes; then
+ AC_DEFINE(HAVE_TYPE_MBSTATE_T, 1,
+ [Define if <wchar.h> defines a mb_state_t type.])
+ fi
if test $ac_cv_type_mbstate_t = no; then
AC_DEFINE(mbstate_t, int,
[Define to a type if <wchar.h> does not define.])