Commit 83c86c85 authored by unknown's avatar unknown

Portability fixes


Docs/manual.texi:
  Changelog
client/mysqlbinlog.cc:
  Portability fix
myisam/ft_test1.c:
  Portability fix
sql/log_event.cc:
  Portability fix
parent 634378a5
...@@ -46712,6 +46712,8 @@ not yet 100% confident in this code. ...@@ -46712,6 +46712,8 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.42 @appendixsubsec Changes in release 3.23.42
@itemize @bullet @itemize @bullet
@item @item
Fixed problem with @code{myisampack} and @code{BLOB}.
@item
Fixes problem when one edited @code{.MRG} tables by hand. Fixes problem when one edited @code{.MRG} tables by hand.
(Patch from Benjamin Pflugmann). (Patch from Benjamin Pflugmann).
@item @item
...@@ -21,9 +21,8 @@ ...@@ -21,9 +21,8 @@
#include <m_string.h> #include <m_string.h>
#include <my_sys.h> #include <my_sys.h>
#include <getopt.h> #include <getopt.h>
#include <my_pthread.h>
#include <thr_alarm.h>
#include <mysql.h> #include <mysql.h>
#include <time.h>
#include "log_event.h" #include "log_event.h"
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_LOCAL_FILES) #define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_LOCAL_FILES)
...@@ -113,7 +112,7 @@ static void die(const char* fmt, ...) ...@@ -113,7 +112,7 @@ static void die(const char* fmt, ...)
static void print_version() static void print_version()
{ {
printf("%s Ver 1.5 for %s at %s\n",my_progname,SYSTEM_TYPE, MACHINE_TYPE); printf("%s Ver 1.6 for %s at %s\n",my_progname,SYSTEM_TYPE, MACHINE_TYPE);
} }
......
...@@ -30,7 +30,6 @@ static int create_flag=0,error=0; ...@@ -30,7 +30,6 @@ static int create_flag=0,error=0;
#define MAX_REC_LENGTH 300 #define MAX_REC_LENGTH 300
static char record[MAX_REC_LENGTH],read_record[MAX_REC_LENGTH]; static char record[MAX_REC_LENGTH],read_record[MAX_REC_LENGTH];
void get_options(int argc,char *argv[]);
static int run_test(const char *filename); static int run_test(const char *filename);
static void get_options(int argc, char *argv[]); static void get_options(int argc, char *argv[]);
static void create_record(char *, int); static void create_record(char *, int);
...@@ -235,7 +234,7 @@ void create_record(char *pos, int n) ...@@ -235,7 +234,7 @@ void create_record(char *pos, int n)
/* Read options */ /* Read options */
void get_options(int argc,char *argv[]) static void get_options(int argc,char *argv[])
{ {
int c; int c;
const char *options="hVvsNSKFU#:"; const char *options="hVvsNSKFU#:";
......
...@@ -277,7 +277,11 @@ void Log_event::print_timestamp(FILE* file, time_t* ts) ...@@ -277,7 +277,11 @@ void Log_event::print_timestamp(FILE* file, time_t* ts)
{ {
ts = &when; ts = &when;
} }
#ifdef MYSQL_SERVER
localtime_r(ts,&tm_tmp); localtime_r(ts,&tm_tmp);
#else
localtime(ts);
#endif
fprintf(file,"%02d%02d%02d %2d:%02d:%02d", fprintf(file,"%02d%02d%02d %2d:%02d:%02d",
tm_tmp.tm_year % 100, tm_tmp.tm_year % 100,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment