$NetBSD: patch-ad,v 1.5 2004/06/22 14:05:39 minskim Exp $

--- lib/readline/rlmbutil.h.orig	Thu Dec 20 15:54:38 2001
+++ lib/readline/rlmbutil.h	Tue Dec 17 15:35:45 2002
@@ -35,7 +35,7 @@
 #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
 #  include <wchar.h>
 #  include <wctype.h>
-#  if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
+#  if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && defined (HAVE_WCTYPE_T)
 #    define HANDLE_MULTIBYTE      1
 #  endif
 #endif
