summaryrefslogtreecommitdiffstats
path: root/package/gdb/7.4.1/05_all_readline-headers.patch
blob: e65adf6e6d030a4fec821d5854138152207d3970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- a/readline/complete.c
+++ b/readline/complete.c
@@ -25,6 +25,11 @@
 #  include <config.h>
 #endif
 
+#ifdef HAVE_WCHAR_H /* wcwidth() */
+# define _GNU_SOURCE
+# include <wchar.h>
+#endif
+
 #include <sys/types.h>
 #include <fcntl.h>
 #if defined (HAVE_SYS_FILE_H)
--- a/readline/display.c
+++ b/readline/display.c
@@ -25,6 +25,11 @@
 #  include <config.h>
 #endif
 
+#ifdef HAVE_WCHAR_H /* wcwidth() */
+# define _GNU_SOURCE
+# include <wchar.h>
+#endif
+
 #include <sys/types.h>
 
 #if defined (HAVE_UNISTD_H)
--- a/readline/mbutil.c
+++ b/readline/mbutil.c
@@ -25,6 +25,11 @@
 #  include <config.h>
 #endif
 
+#ifdef HAVE_WCHAR_H /* wcwidth() */
+# define _GNU_SOURCE
+# include <wchar.h>
+#endif
+
 #include <sys/types.h>
 #include <fcntl.h>
 #include "posixjmp.h"