summaryrefslogtreecommitdiff
path: root/japanese/Canna/files/patch-al
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-26 03:10:46 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-26 03:10:46 +0000
commitd3b6a0557b8db9df5fd9c27b605ff10e32f2c8a1 (patch)
treef6cfe2fadbec74eab73e2fe48b337816a78b55cb /japanese/Canna/files/patch-al
parentMark BROKEN on 5.0 (diff)
Fix build on -current
Submitted by: tjr
Notes
Notes: svn path=/head/; revision=68852
Diffstat (limited to '')
-rw-r--r--japanese/Canna/files/patch-al26
1 files changed, 26 insertions, 0 deletions
diff --git a/japanese/Canna/files/patch-al b/japanese/Canna/files/patch-al
new file mode 100644
index 000000000000..84d0c4172999
--- /dev/null
+++ b/japanese/Canna/files/patch-al
@@ -0,0 +1,26 @@
+--- canna/widedef.h.OLD Sat Oct 26 11:59:11 2002
++++ canna/widedef.h Sat Oct 26 12:04:56 2002
+@@ -35,7 +35,7 @@
+ #define WCHAR16
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__NetBSD__)
+ # include <machine/ansi.h>
+ #endif
+
+@@ -61,7 +61,13 @@
+ #endif /* !nec_ews_svr2 */
+ #endif /* HAVE_WCHAR_OPERATION */
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__)
++# ifdef WCHAR16
++# warning FreeBSD does not use 16-bit wide character types
++# endif
++# include <stddef.h>
++# define _WCHAR_T
++#elif defined(__NetBSD__)
+ # ifdef _BSD_WCHAR_T_
+ # undef _BSD_WCHAR_T_
+ # ifdef WCHAR16