summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorjani@ua141d10.elisa.omakaista.fi <>2005-10-04 18:20:57 +0300
committerjani@ua141d10.elisa.omakaista.fi <>2005-10-04 18:20:57 +0300
commit17e87da29803a46e267abecd3a7f8fe1210adfaa (patch)
tree6a14638a32646753fac39b1c2811ab785c0f0f3e /cmd-line-utils
parentfa2bbce5fa237265854e3db1c51632a483b4a9f2 (diff)
downloadmariadb-git-17e87da29803a46e267abecd3a7f8fe1210adfaa.tar.gz
Some fixes including implicit declaration of a function,
using wrong type in assignment etc.
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/readline/complete.c10
-rw-r--r--cmd-line-utils/readline/display.c9
-rw-r--r--cmd-line-utils/readline/mbutil.c10
3 files changed, 29 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/complete.c b/cmd-line-utils/readline/complete.c
index 5879100e0a6..393700b51e8 100644
--- a/cmd-line-utils/readline/complete.c
+++ b/cmd-line-utils/readline/complete.c
@@ -24,6 +24,12 @@
#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>
#if defined (HAVE_SYS_FILE_H)
@@ -56,6 +62,10 @@ extern int errno;
#include "rldefs.h"
#include "rlmbutil.h"
+#ifdef HAVE_WCHAR_H
+#include <wchar.h>
+#endif
+
/* Some standard library routines. */
#include "readline.h"
#include "xmalloc.h"
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"
diff --git a/cmd-line-utils/readline/mbutil.c b/cmd-line-utils/readline/mbutil.c
index c88e9485f39..5cda8f3732d 100644
--- a/cmd-line-utils/readline/mbutil.c
+++ b/cmd-line-utils/readline/mbutil.c
@@ -24,6 +24,12 @@
#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"
@@ -44,6 +50,10 @@
#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 */