1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

portability fixes

mysql-test/r/mysqlbinlog.result:
  result fixed
This commit is contained in:
unknown
2005-02-20 20:08:33 +01:00
parent 10db96fe43
commit a0a20345b9
6 changed files with 22 additions and 17 deletions

View File

@@ -80,6 +80,7 @@ class TC_LOG_DUMMY: public TC_LOG // use it to disable the logging
void unlog(ulong cookie, my_xid xid) { }
};
#ifdef HAVE_MMAP
class TC_LOG_MMAP: public TC_LOG
{
private:
@@ -103,7 +104,8 @@ class TC_LOG_MMAP: public TC_LOG
char logname[FN_REFLEN];
File fd;
uint file_length, npages, inited;
my_off_t file_length;
uint npages, inited;
uchar *data;
struct st_page *pages, *syncing, *active, *pool, *pool_last;
/*
@@ -128,6 +130,9 @@ class TC_LOG_MMAP: public TC_LOG
int sync();
int overflow();
};
#else
#define TC_LOG_MMAP TC_LOG_DUMMY
#endif
extern TC_LOG *tc_log;
extern TC_LOG_MMAP tc_log_mmap;