summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/display.c')
-rw-r--r--cmd-line-utils/readline/display.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/display.c b/cmd-line-utils/readline/display.c
index cab76c0da81..372feeaffea 100644
--- a/cmd-line-utils/readline/display.c
+++ b/cmd-line-utils/readline/display.c
@@ -25,6 +25,11 @@
#include <sys/types.h>
+/* To get SuSE 9.3 to define wcwidth() (in wchar.h) */
+#ifndef __USE_XOPEN
+#define __USE_XOPEN
+#endif
+
#if defined (HAVE_UNISTD_H)
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
@@ -43,6 +48,10 @@
#include "rldefs.h"
#include "rlmbutil.h"
+#ifdef HAVE_WCHAR_H
+#include <wchar.h>
+#endif
+
/* Termcap library stuff. */
#include "tcap.h"