summaryrefslogtreecommitdiff
path: root/net-im/gale/files/patch-wcwidth
blob: 11029afc3555e43b27ca0f803f7bd917077cec40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- /tmp/wcwidth.c.orig	Fri Oct 25 21:05:46 2002
+++ libgale/wcwidth.c	Fri Oct 25 21:05:51 2002
@@ -6,10 +6,16 @@
  * Markus Kuhn -- 2000-02-08 -- public domain
  */
 
-#ifdef __FreeBSD__ /* peterh@sapros.com */
+#ifdef __FreeBSD__
+#include <osreldate.h>
+#if __FreeBSD_version >= 500000
+#include <wchar.h>
+#else
 #include <rune.h>
 #endif
+#else
 #include <wchar.h>
+#endif
 
 /* These functions define the column width of an ISO 10646 character
  * as follows: