summaryrefslogtreecommitdiff
path: root/packages/gdb/7.4.1/0001-all_readline-headers.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-12-02 23:30:38 (GMT)
committerGitHub <noreply@github.com>2017-12-02 23:30:38 (GMT)
commitd917a29865876b913fe2939ee2a0728145e8543a (patch)
tree4e048ed57988306696efa3c5b81a80d48030e913 /packages/gdb/7.4.1/0001-all_readline-headers.patch
parente832b9b220f90b11b893e2815ceb37ec2b708683 (diff)
parent98bc4decdeab1361bdc585c86591718fb08c8ffb (diff)
Merge pull request #874 from stilor/renumber-update-patches
Renumber & update patches
Diffstat (limited to 'packages/gdb/7.4.1/0001-all_readline-headers.patch')
-rw-r--r--packages/gdb/7.4.1/0001-all_readline-headers.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/gdb/7.4.1/0001-all_readline-headers.patch b/packages/gdb/7.4.1/0001-all_readline-headers.patch
new file mode 100644
index 0000000..4aa0572
--- /dev/null
+++ b/packages/gdb/7.4.1/0001-all_readline-headers.patch
@@ -0,0 +1,48 @@
+---
+ readline/complete.c | 5 +++++
+ readline/display.c | 5 +++++
+ readline/mbutil.c | 5 +++++
+ 3 files changed, 15 insertions(+)
+
+--- 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"