summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/config_readline.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/config_readline.h')
-rw-r--r--cmd-line-utils/readline/config_readline.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/config_readline.h b/cmd-line-utils/readline/config_readline.h
index 141989ec3c9..69bf18efc1f 100644
--- a/cmd-line-utils/readline/config_readline.h
+++ b/cmd-line-utils/readline/config_readline.h
@@ -7,6 +7,11 @@
# include <config.h>
#endif
+/* to get wcwidth() defined */
+#define _XOPEN_SOURCE 600
+#define _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_
+
/*
Ultrix botches type-ahead when switching from canonical to
non-canonical mode, at least through version 4.3