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.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd-line-utils/readline/display.c b/cmd-line-utils/readline/display.c
index 372feeaffea..06eaa5e4be2 100644
--- a/cmd-line-utils/readline/display.c
+++ b/cmd-line-utils/readline/display.c
@@ -21,14 +21,15 @@
59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
+#endif
+
#include "config_readline.h"
#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>
@@ -48,10 +49,6 @@
#include "rldefs.h"
#include "rlmbutil.h"
-#ifdef HAVE_WCHAR_H
-#include <wchar.h>
-#endif
-
/* Termcap library stuff. */
#include "tcap.h"