patches/gdb/7.4.1/05_all_readline-headers.patch
changeset 3059 1e5fe55974bc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gdb/7.4.1/05_all_readline-headers.patch	Sun Sep 23 11:53:02 2012 +0900
     1.3 @@ -0,0 +1,42 @@
     1.4 +--- a/readline/complete.c
     1.5 ++++ b/readline/complete.c
     1.6 +@@ -25,6 +25,11 @@
     1.7 + #  include <config.h>
     1.8 + #endif
     1.9 + 
    1.10 ++#ifdef HAVE_WCHAR_H /* wcwidth() */
    1.11 ++# define _GNU_SOURCE
    1.12 ++# include <wchar.h>
    1.13 ++#endif
    1.14 ++
    1.15 + #include <sys/types.h>
    1.16 + #include <fcntl.h>
    1.17 + #if defined (HAVE_SYS_FILE_H)
    1.18 +--- a/readline/display.c
    1.19 ++++ b/readline/display.c
    1.20 +@@ -25,6 +25,11 @@
    1.21 + #  include <config.h>
    1.22 + #endif
    1.23 + 
    1.24 ++#ifdef HAVE_WCHAR_H /* wcwidth() */
    1.25 ++# define _GNU_SOURCE
    1.26 ++# include <wchar.h>
    1.27 ++#endif
    1.28 ++
    1.29 + #include <sys/types.h>
    1.30 + 
    1.31 + #if defined (HAVE_UNISTD_H)
    1.32 +--- a/readline/mbutil.c
    1.33 ++++ b/readline/mbutil.c
    1.34 +@@ -25,6 +25,11 @@
    1.35 + #  include <config.h>
    1.36 + #endif
    1.37 + 
    1.38 ++#ifdef HAVE_WCHAR_H /* wcwidth() */
    1.39 ++# define _GNU_SOURCE
    1.40 ++# include <wchar.h>
    1.41 ++#endif
    1.42 ++
    1.43 + #include <sys/types.h>
    1.44 + #include <fcntl.h>
    1.45 + #include "posixjmp.h"