mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
Fix build on -current (#include <wchar.h> instead of <rune.h>)
This commit is contained in:
parent
2c2c21bd9d
commit
0cb3e9266a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68860
2 changed files with 24 additions and 10 deletions
|
@ -1,10 +1,17 @@
|
|||
--- libgale/wcwidth.c.orig Fri Oct 12 13:45:37 2001
|
||||
+++ libgale/wcwidth.c Fri Oct 12 13:45:52 2001
|
||||
@@ -8,8 +8,9 @@
|
||||
--- /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__ /* peterh@sapros.com */
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 500000
|
||||
+#include <wchar.h>
|
||||
+#else
|
||||
#include <rune.h>
|
||||
-#endif
|
||||
#endif
|
||||
+#else
|
||||
#include <wchar.h>
|
||||
+#endif
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
--- libgale/wcwidth.c.orig Fri Oct 12 13:45:37 2001
|
||||
+++ libgale/wcwidth.c Fri Oct 12 13:45:52 2001
|
||||
@@ -8,8 +8,9 @@
|
||||
--- /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__ /* peterh@sapros.com */
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 500000
|
||||
+#include <wchar.h>
|
||||
+#else
|
||||
#include <rune.h>
|
||||
-#endif
|
||||
#endif
|
||||
+#else
|
||||
#include <wchar.h>
|
||||
+#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue