mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.1
into eagle.mysql.r18.ru:/home/vva/work/mysql.orig/test/mysql-4.1 cmd-line-utils/libedit/Makefile.am: Auto merged configure.in: Auto merged
This commit is contained in:
35
acinclude.m4
35
acinclude.m4
@ -665,6 +665,41 @@ AC_DEFINE(STRUCT_DIRENT_HAS_D_INO, [1],
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(MYSQL_STRUCT_DIRENT_D_NAMLEN,
|
||||||
|
[AC_REQUIRE([AC_HEADER_DIRENT])
|
||||||
|
AC_MSG_CHECKING(if struct dirent has a d_namlen member)
|
||||||
|
AC_CACHE_VAL(mysql_cv_dirent_has_dnamlen,
|
||||||
|
[AC_TRY_COMPILE([
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif /* HAVE_UNISTD_H */
|
||||||
|
#if defined(HAVE_DIRENT_H)
|
||||||
|
# include <dirent.h>
|
||||||
|
#else
|
||||||
|
# define dirent direct
|
||||||
|
# ifdef HAVE_SYS_NDIR_H
|
||||||
|
# include <sys/ndir.h>
|
||||||
|
# endif /* SYSNDIR */
|
||||||
|
# ifdef HAVE_SYS_DIR_H
|
||||||
|
# include <sys/dir.h>
|
||||||
|
# endif /* SYSDIR */
|
||||||
|
# ifdef HAVE_NDIR_H
|
||||||
|
# include <ndir.h>
|
||||||
|
# endif
|
||||||
|
#endif /* HAVE_DIRENT_H */
|
||||||
|
],[
|
||||||
|
struct dirent d; int z; z = (int)d.d_namlen;
|
||||||
|
], mysql_cv_dirent_has_dnamlen=yes, mysql_cv_dirent_has_dnamlen=no)])
|
||||||
|
AC_MSG_RESULT($mysql_cv_dirent_has_dnamlen)
|
||||||
|
if test "$mysql_cv_dirent_has_dnamlen" = "yes"; then
|
||||||
|
AC_DEFINE(STRUCT_DIRENT_HAS_D_NAMLEN, [1],
|
||||||
|
[d_namlen member present in struct dirent])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
AC_DEFUN(MYSQL_TYPE_SIGHANDLER,
|
AC_DEFUN(MYSQL_TYPE_SIGHANDLER,
|
||||||
[AC_MSG_CHECKING([whether signal handlers are of type void])
|
[AC_MSG_CHECKING([whether signal handlers are of type void])
|
||||||
AC_CACHE_VAL(mysql_cv_void_sighandler,
|
AC_CACHE_VAL(mysql_cv_void_sighandler,
|
||||||
|
@ -30,7 +30,7 @@ EXTRA_DIST = makelist.sh np/unvis.c np/strlcpy.c np/vis.c np/vis.h np/strlcat.c
|
|||||||
|
|
||||||
CLEANFILES = makelist common.h emacs.h vi.h fcns.h help.h fcns.c help.c
|
CLEANFILES = makelist common.h emacs.h vi.h fcns.h help.h fcns.c help.c
|
||||||
|
|
||||||
DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR '-D__RCSID(x)=' '-D__COPYRIGHT(x)=' '-D__RENAME(x)=' '-D_DIAGASSERT(x)='
|
DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR
|
||||||
|
|
||||||
SUFFIXES = .sh
|
SUFFIXES = .sh
|
||||||
|
|
||||||
|
@ -62,13 +62,13 @@ cv_undo(EditLine *el)
|
|||||||
{
|
{
|
||||||
c_undo_t *vu = &el->el_chared.c_undo;
|
c_undo_t *vu = &el->el_chared.c_undo;
|
||||||
c_redo_t *r = &el->el_chared.c_redo;
|
c_redo_t *r = &el->el_chared.c_redo;
|
||||||
uint size;
|
int size;
|
||||||
|
|
||||||
/* Save entire line for undo */
|
/* Save entire line for undo */
|
||||||
size = el->el_line.lastchar - el->el_line.buffer;
|
size = el->el_line.lastchar - el->el_line.buffer;
|
||||||
vu->len = size;
|
vu->len = size;
|
||||||
vu->cursor = el->el_line.cursor - el->el_line.buffer;
|
vu->cursor = el->el_line.cursor - el->el_line.buffer;
|
||||||
memcpy(vu->buf, el->el_line.buffer, size);
|
memcpy(vu->buf, el->el_line.buffer, (size_t)size);
|
||||||
|
|
||||||
/* save command info for redo */
|
/* save command info for redo */
|
||||||
r->count = el->el_state.doingarg ? el->el_state.argument : 0;
|
r->count = el->el_state.doingarg ? el->el_state.argument : 0;
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
|
||||||
#include "my_config.h"
|
#include "my_config.h"
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
|
|
||||||
|
#define __RCSID(x)
|
||||||
|
#define __COPYRIGHT(x)
|
||||||
|
#define __RENAME(x)
|
||||||
|
#define _DIAGASSERT(x)
|
||||||
|
|
||||||
|
#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
|
||||||
|
#define __attribute__(A)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
|
||||||
|
@ -34,12 +34,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");
|
__RCSID("$NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#ifdef HAVE_ALLOCA_H
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
@ -1345,7 +1345,7 @@ filename_completion_function(const char *text, int state)
|
|||||||
/* otherwise, get first entry where first */
|
/* otherwise, get first entry where first */
|
||||||
/* filename_len characters are equal */
|
/* filename_len characters are equal */
|
||||||
if (entry->d_name[0] == filename[0]
|
if (entry->d_name[0] == filename[0]
|
||||||
#if defined(__SVR4) || defined(__linux__)
|
#ifndef STRUCT_DIRENT_HAS_D_NAMLEN
|
||||||
&& strlen(entry->d_name) >= filename_len
|
&& strlen(entry->d_name) >= filename_len
|
||||||
#else
|
#else
|
||||||
&& entry->d_namlen >= filename_len
|
&& entry->d_namlen >= filename_len
|
||||||
@ -1358,7 +1358,7 @@ filename_completion_function(const char *text, int state)
|
|||||||
if (entry) { /* match found */
|
if (entry) { /* match found */
|
||||||
|
|
||||||
struct stat stbuf;
|
struct stat stbuf;
|
||||||
#if defined(__SVR4) || defined(__linux__)
|
#ifndef STRUCT_DIRENT_HAS_D_NAMLEN
|
||||||
len = strlen(entry->d_name) +
|
len = strlen(entry->d_name) +
|
||||||
#else
|
#else
|
||||||
len = entry->d_namlen +
|
len = entry->d_namlen +
|
||||||
|
@ -1865,6 +1865,7 @@ MYSQL_HAVE_TIOCGWINSZ
|
|||||||
MYSQL_HAVE_FIONREAD
|
MYSQL_HAVE_FIONREAD
|
||||||
MYSQL_HAVE_TIOCSTAT
|
MYSQL_HAVE_TIOCSTAT
|
||||||
MYSQL_STRUCT_DIRENT_D_INO
|
MYSQL_STRUCT_DIRENT_D_INO
|
||||||
|
MYSQL_STRUCT_DIRENT_D_NAMLEN
|
||||||
MYSQL_TYPE_SIGHANDLER
|
MYSQL_TYPE_SIGHANDLER
|
||||||
if test "$with_named_curses" = "no"
|
if test "$with_named_curses" = "no"
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user