diff options
author | serg@serg.mylan <> | 2005-02-20 20:08:33 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2005-02-20 20:08:33 +0100 |
commit | 1bc6ae891314dbd85e9b08583d936375329f58dc (patch) | |
tree | 350d45d1c0dbdf570edc1a23e51a170a8404e777 /sql/sql_class.h | |
parent | 6904398874e7a2e73731474bd8d7df33f7b43c89 (diff) | |
download | mariadb-git-1bc6ae891314dbd85e9b08583d936375329f58dc.tar.gz |
portability fixes
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 05fd1fdea58..34019e73f96 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -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; |