mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
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.
This commit is contained in:
commit
b8ca26691d
6 changed files with 26 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue