diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-26 13:24:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-26 13:24:06 -0600 |
commit | 349f642f056d059b72dbfa3cba3763964b15d876 (patch) | |
tree | a3f309e659b0a3754499e71ff558aee3c2ecb10f /misc/buildroot/toolchain/gdb/7.4.1/05_all_readline-headers.patch | |
parent | 528a08e265854a95976a5d77e91bdb934482a278 (diff) | |
download | nuttx-349f642f056d059b72dbfa3cba3763964b15d876.tar.gz nuttx-349f642f056d059b72dbfa3cba3763964b15d876.tar.bz2 nuttx-349f642f056d059b72dbfa3cba3763964b15d876.zip |
Add GCc 4.8.2 support for buildroot
Diffstat (limited to 'misc/buildroot/toolchain/gdb/7.4.1/05_all_readline-headers.patch')
-rw-r--r-- | misc/buildroot/toolchain/gdb/7.4.1/05_all_readline-headers.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/buildroot/toolchain/gdb/7.4.1/05_all_readline-headers.patch b/misc/buildroot/toolchain/gdb/7.4.1/05_all_readline-headers.patch new file mode 100644 index 000000000..e65adf6e6 --- /dev/null +++ b/misc/buildroot/toolchain/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" |