patches/gdb/7.4.1/05_all_readline-headers.patch
author danielrubiob@gmail.com
Tue Feb 11 21:34:48 2014 +0100 (2014-02-11)
changeset 3285 a8cb9039fade
permissions -rw-r--r--
complibs/cloog: bump version

Signed-off-by: Daniel Rubio Bonilla <danielrubiob@gmail.com>
[yann.morin.1998@free.fr: re-order versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <dev@codyps.com>
Message-Id: <c2de3964cd6d5e4173cc.1391984023@uemo>
Patchwork-Id: 318637
     1 --- a/readline/complete.c
     2 +++ b/readline/complete.c
     3 @@ -25,6 +25,11 @@
     4  #  include <config.h>
     5  #endif
     6  
     7 +#ifdef HAVE_WCHAR_H /* wcwidth() */
     8 +# define _GNU_SOURCE
     9 +# include <wchar.h>
    10 +#endif
    11 +
    12  #include <sys/types.h>
    13  #include <fcntl.h>
    14  #if defined (HAVE_SYS_FILE_H)
    15 --- a/readline/display.c
    16 +++ b/readline/display.c
    17 @@ -25,6 +25,11 @@
    18  #  include <config.h>
    19  #endif
    20  
    21 +#ifdef HAVE_WCHAR_H /* wcwidth() */
    22 +# define _GNU_SOURCE
    23 +# include <wchar.h>
    24 +#endif
    25 +
    26  #include <sys/types.h>
    27  
    28  #if defined (HAVE_UNISTD_H)
    29 --- a/readline/mbutil.c
    30 +++ b/readline/mbutil.c
    31 @@ -25,6 +25,11 @@
    32  #  include <config.h>
    33  #endif
    34  
    35 +#ifdef HAVE_WCHAR_H /* wcwidth() */
    36 +# define _GNU_SOURCE
    37 +# include <wchar.h>
    38 +#endif
    39 +
    40  #include <sys/types.h>
    41  #include <fcntl.h>
    42  #include "posixjmp.h"