summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2011-11-18 13:57:10 +0200
committerVasil Dimov <vasil.dimov@oracle.com>2011-11-18 13:57:10 +0200
commit63e381e98d010e0049bff2ff99c091b8806e6bc2 (patch)
treef3f8ea7bb7510cef24661dbccde636d875dccdb7 /cmd-line-utils
parent1f8efaccd442af8e08a8f663893f4aee6dbbfefb (diff)
parente1df69f75ac478b0456bc768b61dfd412fa510e9 (diff)
downloadmariadb-git-63e381e98d010e0049bff2ff99c091b8806e6bc2.tar.gz
Merge mysql-5.1 -> mysql-5.5
I manually checked that all the conflicting InnoDB changes are in 5.5 already. Two things I am not sure about - I commented them with XXX in this patch. I will further check with the authors of the changesets whether these things should be present or not.
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/libedit/histedit.h5
-rw-r--r--cmd-line-utils/libedit/np/unvis.c15
-rw-r--r--cmd-line-utils/libedit/np/vis.c8
-rw-r--r--cmd-line-utils/libedit/read.c2
4 files changed, 21 insertions, 9 deletions
diff --git a/cmd-line-utils/libedit/histedit.h b/cmd-line-utils/libedit/histedit.h
index 9f2b245f851..523d27b0be2 100644
--- a/cmd-line-utils/libedit/histedit.h
+++ b/cmd-line-utils/libedit/histedit.h
@@ -43,7 +43,12 @@
#define LIBEDIT_MAJOR 2
#define LIBEDIT_MINOR 11
+/* XXXMYSQL : stdint.h might not be available on older Solaris platforms. */
+#if defined(__sun) || defined(__sun__)
+#include <sys/inttypes.h>
+#else
#include <stdint.h>
+#endif
#include <sys/types.h>
#include <stdio.h>
diff --git a/cmd-line-utils/libedit/np/unvis.c b/cmd-line-utils/libedit/np/unvis.c
index 4c523608c27..812d280b2d8 100644
--- a/cmd-line-utils/libedit/np/unvis.c
+++ b/cmd-line-utils/libedit/np/unvis.c
@@ -47,14 +47,21 @@ static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
#include <assert.h>
#include <ctype.h>
+
+/* XXXMYSQL : stdint.h might not be available on older Solaris platforms. */
+#if defined(__sun) || defined(__sun__)
+#include <sys/inttypes.h>
+#else
#include <stdint.h>
+#endif
+
#include <stdio.h>
#include <errno.h>
-#ifdef HAVE_VIS_H
-#include <vis.h>
-#else
+/*
+ XXXMYSQL : Due to different versions of vis.h available,
+ use the one bundled with libedit.
+*/
#include "np/vis.h"
-#endif
#ifdef __weak_alias
__weak_alias(strnunvisx,_strnunvisx)
diff --git a/cmd-line-utils/libedit/np/vis.c b/cmd-line-utils/libedit/np/vis.c
index 6c75438c352..d7cc37b4f47 100644
--- a/cmd-line-utils/libedit/np/vis.c
+++ b/cmd-line-utils/libedit/np/vis.c
@@ -68,11 +68,11 @@
#include <sys/types.h>
#include <assert.h>
-#ifdef HAVE_VIS_H
-#include <vis.h>
-#else
+/*
+ XXXMYSQL : Due to different versions of vis.h available,
+ use the one bundled with libedit.
+*/
#include "np/vis.h"
-#endif
#include <errno.h>
#include <stdlib.h>
diff --git a/cmd-line-utils/libedit/read.c b/cmd-line-utils/libedit/read.c
index 48bf4efd59b..a919b888965 100644
--- a/cmd-line-utils/libedit/read.c
+++ b/cmd-line-utils/libedit/read.c
@@ -333,7 +333,7 @@ memset(&state, 0, sizeof(mbstate_t));
#ifdef WIDECHAR
++cbp;
- if (cbp > MB_CUR_MAX) { /* "shouldn't happen" */
+ if (cbp > (size_t) MB_CUR_MAX) { /* "shouldn't happen" */
*cp = '\0';
return (-1);
}