2017-12-02 20:44:39 +00:00
|
|
|
---
|
|
|
|
readline/complete.c | 5 +++++
|
|
|
|
readline/display.c | 5 +++++
|
|
|
|
readline/mbutil.c | 5 +++++
|
|
|
|
3 files changed, 15 insertions(+)
|
|
|
|
|
2012-09-23 02:53:02 +00:00
|
|
|
--- 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"
|