compilation/test fixes
This commit is contained in:
parent
10057bf4c3
commit
1bd2953c02
@ -466,7 +466,7 @@ C_MODE_END
|
||||
#include <assert.h>
|
||||
|
||||
/* an assert that works at compile-time. only for constant expression */
|
||||
#ifdef __WIN__
|
||||
#ifndef __GNUC__
|
||||
#define compile_time_assert(X) do { } while(0)
|
||||
#else
|
||||
#define compile_time_assert(X) \
|
||||
|
@ -1361,7 +1361,10 @@ sub collect_mysqld_features () {
|
||||
# --no-defaults and --skip-grant-tables are to avoid loading
|
||||
# system-wide configs and plugins
|
||||
#
|
||||
my $list= `$exe_mysqld --no-defaults --datadir=$default_vardir --language=$path_language --skip-grant-tables --verbose --help`;
|
||||
# --datadir - for lowercase test to work
|
||||
#
|
||||
my $tmp_datadir=$opt_vardir || $default_vardir;
|
||||
my $list= `$exe_mysqld --no-defaults --datadir=$tmp_datadir --language=$path_language --skip-grant-tables --verbose --help`;
|
||||
|
||||
foreach my $line (split('\n', $list))
|
||||
{
|
||||
|
@ -259,9 +259,9 @@ MY_LOCALE *my_locale_by_number(uint number);
|
||||
#define MAX_CONNECT_ERRORS 10 // errors before disabling host
|
||||
|
||||
#ifdef __NETWARE__
|
||||
#define IF_NETWARE(A,B) (A)
|
||||
#define IF_NETWARE(A,B) A
|
||||
#else
|
||||
#define IF_NETWARE(A,B) (B)
|
||||
#define IF_NETWARE(A,B) B
|
||||
#endif
|
||||
|
||||
#if defined(__WIN__)
|
||||
|
@ -7675,9 +7675,7 @@ static MYSQL_SYSVAR_ULONG(fast_shutdown, innobase_fast_shutdown,
|
||||
NetWare can't close unclosed files, can't automatically kill remaining
|
||||
threads, etc, so on this OS we disable the crash-like InnoDB shutdown.
|
||||
*/
|
||||
#ifndef __NETWARE__
|
||||
" or 2 (fastest - crash-like)"
|
||||
#endif
|
||||
IF_NETWARE("", " or 2 (fastest - crash-like)")
|
||||
".",
|
||||
NULL, NULL, 1, 0, IF_NETWARE(1,2), 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user