mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
This commit is contained in:
commit
f8c036a052
2 changed files with 23 additions and 0 deletions
|
@ -90,6 +90,16 @@ extern char* tgoto(const char*, int, int);
|
|||
extern char* tgetstr(char*, char**);
|
||||
#endif
|
||||
|
||||
|
||||
#if !HAVE_DECL_TGOTO
|
||||
/*
|
||||
'tgoto' is not declared in the system header files, this causes
|
||||
problems on 64-bit systems. The function returns a 64 bit pointer
|
||||
but caller see it as "int" and it's thus truncated to 32-bit
|
||||
*/
|
||||
extern char* tgoto(const char*, int, int);
|
||||
#endif
|
||||
|
||||
protected void term_move_to_line(EditLine *, int);
|
||||
protected void term_move_to_char(EditLine *, int);
|
||||
protected void term_clear_EOL(EditLine *, int);
|
||||
|
|
13
configure.in
13
configure.in
|
@ -1867,6 +1867,19 @@ else
|
|||
fi
|
||||
AC_SUBST(TERMCAP_LIB)
|
||||
|
||||
# Check if the termcap function 'tgoto' is already declared in
|
||||
# system header files or if it need to be declared locally
|
||||
AC_CHECK_DECLS(tgoto,,,[
|
||||
#ifdef HAVE_CURSES_H
|
||||
# include <curses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
# include <ncurses.h>
|
||||
#endif
|
||||
#ifdef HAVE_TERM_H
|
||||
# include <term.h>
|
||||
#endif
|
||||
])
|
||||
|
||||
LIBEDIT_LOBJECTS=""
|
||||
AC_CHECK_FUNC(strunvis, ,[LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS unvis.o"])
|
||||
AC_CHECK_FUNC(strvis, ,[LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS vis.o"])
|
||||
|
|
Loading…
Reference in a new issue