mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-01 18:46:41 +00:00
dcd88fbd99
This is for when you failed to build gdb-native with the error: gdb-7.4.1/gdb/linux-nat.h:79:18: error: field 'siginfo' has incomplete type" This is from mirror://gentoo/distfiles/gdb-7.4.1-patches-2.tar.xz Signed-off-by: "Jang, Bongseo" <graycells@gmail.com> [yann.morin.1998@free.fr: refresh ptrace_setsiginfo patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-ID: <4eef2edec3201c50b420.1348370891@localhost.localdomain> PatchWork-ID: 186179
43 lines
773 B
Diff
43 lines
773 B
Diff
--- 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"
|