Pull in the few changes from mysql-5.4.0-release; also a minor portability fix up from mysql-5.1
This commit is contained in:
commit
508084bca6
@ -1,4 +1,4 @@
|
||||
[MYSQL]
|
||||
post_commit_to = "commits@lists.mysql.com"
|
||||
post_push_to = "commits@lists.mysql.com"
|
||||
post_commit_to = False #"commits@lists.mysql.com"
|
||||
post_push_to = False #"commits@lists.mysql.com"
|
||||
tree_name = "mysql-5.1"
|
||||
|
@ -84,7 +84,7 @@ case $FLAG in
|
||||
cat $FILES | $AWK '
|
||||
BEGIN {
|
||||
printf("/* Automatically generated file, do not edit */\n");
|
||||
printf("#include \"sys.h\"\n#include \"el.h\"\n");
|
||||
printf("#include \"config.h\"\n#include \"el.h\"\n");
|
||||
printf("private const struct el_bindings_t el_func_help[] = {\n");
|
||||
low = "abcdefghijklmnopqrstuvwxyz_";
|
||||
high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_";
|
||||
@ -169,7 +169,7 @@ case $FLAG in
|
||||
cat $FILES | $AWK '/el_action_t/ { print $3 }' | sort | $AWK '
|
||||
BEGIN {
|
||||
printf("/* Automatically generated file, do not edit */\n");
|
||||
printf("#include \"sys.h\"\n#include \"el.h\"\n");
|
||||
printf("#include \"config.h\"\n#include \"el.h\"\n");
|
||||
printf("private const el_func_t el_func[] = {");
|
||||
maxlen = 80;
|
||||
needn = 1;
|
||||
|
@ -51,13 +51,10 @@
|
||||
#else
|
||||
#include "np/vis.h"
|
||||
#endif
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
#include "readline/readline.h"
|
||||
#include "el.h"
|
||||
#include "fcns.h" /* for EL_NUM_FCNS */
|
||||
#include "histedit.h"
|
||||
#include "readline/readline.h"
|
||||
#include "filecomplete.h"
|
||||
|
||||
void rl_prep_terminal(int);
|
||||
|
@ -66,7 +66,7 @@ typedef KEYMAP_ENTRY *Keymap;
|
||||
|
||||
#ifndef CTRL
|
||||
#include <sys/ioctl.h>
|
||||
#if !defined(__sun__) && !defined(__hpux__)
|
||||
#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__QNXNTO__) && !defined(__USLC__)
|
||||
#include <sys/ttydefaults.h>
|
||||
#endif
|
||||
#ifndef CTRL
|
||||
|
@ -914,14 +914,14 @@ vi_comment_out(EditLine *el, int c)
|
||||
* NB: posix implies that we should enter insert mode, however
|
||||
* this is against historical precedent...
|
||||
*/
|
||||
#ifdef __weak_reference
|
||||
#if defined(__weak_reference) && !defined(__FreeBSD__)
|
||||
extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
|
||||
#endif
|
||||
protected el_action_t
|
||||
/*ARGSUSED*/
|
||||
vi_alias(EditLine *el, int c)
|
||||
{
|
||||
#ifdef __weak_reference
|
||||
#if defined(__weak_reference) && !defined(__FreeBSD__)
|
||||
char alias_name[3];
|
||||
char *alias_text;
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
# MA 02111-1307, USA
|
||||
|
||||
BUILT_SOURCES = $(HEADERS_GEN_MAKE) link_sources
|
||||
BUILT_SOURCES = $(HEADERS_GEN_MAKE) link_sources probes_mysql_nodtrace.h
|
||||
HEADERS_GEN_CONFIGURE = mysql_version.h
|
||||
HEADERS_GEN_MAKE = my_config.h
|
||||
HEADERS_ABI = mysql.h mysql_com.h mysql_time.h \
|
||||
@ -40,8 +40,7 @@ noinst_HEADERS = config-win.h config-netware.h my_bit.h \
|
||||
my_vle.h my_user.h my_atomic.h atomic/nolock.h \
|
||||
atomic/rwlock.h atomic/x86-gcc.h atomic/x86-msvc.h \
|
||||
atomic/solaris.h \
|
||||
atomic/gcc_builtins.h my_libwrap.h my_stacktrace.h \
|
||||
probes_mysql.h probes_mysql_nodtrace.h
|
||||
atomic/gcc_builtins.h my_libwrap.h my_stacktrace.h
|
||||
|
||||
EXTRA_DIST = mysql.h.pp mysql/plugin.h.pp probes_mysql.d.base
|
||||
|
||||
@ -77,7 +76,7 @@ probes_mysql.d:
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
if HAVE_DTRACE
|
||||
BUILT_SOURCES += probes_mysql_dtrace.h
|
||||
CLEANFILES += probes_mysql_dtrace.h
|
||||
CLEANFILES += $(DTRACEPROVIDER)
|
||||
|
||||
# Fake for creating the probes file. If we are building a separate directory
|
||||
# then we copy the probes from the source location and use that
|
||||
|
@ -132,6 +132,7 @@ libmysys_a_DEPENDENCIES += probes_mysql.o dtrace_files dtrace_providers
|
||||
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
||||
DTRACEFILES = mf_keycache.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
@ -229,6 +229,7 @@ mysqld_LDADD += probes_all.o
|
||||
mysqld_DEPENDENCIES += dtrace_files dtrace_providers probes_all.o
|
||||
CLEANFILES += dtrace_files dtrace_providers probes_all.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER)
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
@ -48,6 +48,7 @@ libcsv_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
||||
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
||||
DTRACEFILES = libcsv_a-ha_tina.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
@ -57,6 +57,7 @@ libheap_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
||||
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
||||
DTRACEFILES = ha_heap.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
@ -156,6 +156,7 @@ libmyisam_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
||||
CLEANFILES += probes_mysql.o dtrace_files dtrace_providers
|
||||
DTRACEFILES = ha_myisam.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
@ -46,6 +46,7 @@ libmyisammrg_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
||||
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
||||
DTRACEFILES = ha_myisammrg.o
|
||||
DTRACEPROVIDER = probes_mysql.d
|
||||
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
|
||||
|
||||
dtrace_files:
|
||||
echo $(DTRACEFILES) > $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user