summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/mbutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/mbutil.c')
-rw-r--r--cmd-line-utils/readline/mbutil.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd-line-utils/readline/mbutil.c b/cmd-line-utils/readline/mbutil.c
index 5cda8f3732d..284ea63aae4 100644
--- a/cmd-line-utils/readline/mbutil.c
+++ b/cmd-line-utils/readline/mbutil.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
#include <fcntl.h>
#include "posixjmp.h"
@@ -50,10 +51,6 @@
#include "rldefs.h"
#include "rlmbutil.h"
-#ifdef HAVE_WCHAR_H
-#include <wchar.h>
-#endif
-
#if defined (TIOCSTAT_IN_SYS_IOCTL)
# include <sys/ioctl.h>
#endif /* TIOCSTAT_IN_SYS_IOCTL */