diff options
author | Jang, Bongseo <graycells@gmail.com> | 2012-09-23 11:53:02 +0900 |
---|---|---|
committer | Jang, Bongseo <graycells@gmail.com> | 2012-09-23 11:53:02 +0900 |
commit | dcd88fbd99605bbc52833c2bb5d6e59286f5d054 (patch) | |
tree | 9fc07965e66f9b847bfb4b7478ca36b612c6af6b /patches/gdb/7.4.1/05_all_readline-headers.patch | |
parent | 3d37777119311bb649fa2a79e353a5137dd3d951 (diff) | |
download | crosstool-ng-dcd88fbd99605bbc52833c2bb5d6e59286f5d054.tar.gz crosstool-ng-dcd88fbd99605bbc52833c2bb5d6e59286f5d054.tar.bz2 crosstool-ng-dcd88fbd99605bbc52833c2bb5d6e59286f5d054.zip |
debug/gdb: fix from upstream with newer glibc(siginfo vs siginfo_t, Gentoo gdb-7.4.1 patch)
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
Diffstat (limited to 'patches/gdb/7.4.1/05_all_readline-headers.patch')
-rw-r--r-- | patches/gdb/7.4.1/05_all_readline-headers.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/patches/gdb/7.4.1/05_all_readline-headers.patch b/patches/gdb/7.4.1/05_all_readline-headers.patch new file mode 100644 index 00000000..e65adf6e --- /dev/null +++ b/patches/gdb/7.4.1/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" |