$OpenBSD: patch-canna_widedef_h,v 1.2 2006/01/15 14:41:31 espie Exp $ --- canna/widedef.h.orig Fri Nov 29 14:00:55 1996 +++ canna/widedef.h Sun Jan 15 15:32:57 2006 @@ -62,5 +62,13 @@ #endif /* HAVE_WCHAR_OPERATION */ -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__OpenBSD__) +#define _WCHAR_T_DEFINED_ +# ifdef WCHAR16 +typedef unsigned short wchar_t; +# else +typedef unsigned long wchar_t; +# endif +# define _WCHAR_T +#elif defined(__FreeBSD__) || defined(__NetBSD__) # ifdef _BSD_WCHAR_T_ # undef _BSD_WCHAR_T_