aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdb/05_all_readline-headers.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-23 12:23:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-23 12:23:50 +0000
commit1d773a09f5f32db25ea082402c5283cf622d0da8 (patch)
tree70f6cd05997a057a28dcf157e1bafc3060f32ad5 /main/gdb/05_all_readline-headers.patch
parentfa3b84db15d2c45570decc5e9335492b93cca0df (diff)
downloadaports-1d773a09f5f32db25ea082402c5283cf622d0da8.tar.bz2
aports-1d773a09f5f32db25ea082402c5283cf622d0da8.tar.xz
main/gdb: upgrade to 7.4
Diffstat (limited to 'main/gdb/05_all_readline-headers.patch')
-rw-r--r--main/gdb/05_all_readline-headers.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/gdb/05_all_readline-headers.patch b/main/gdb/05_all_readline-headers.patch
new file mode 100644
index 0000000000..e65adf6e6d
--- /dev/null
+++ b/main/gdb/05_all_readline-headers.patch
@@ -0,0 +1,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"