From efa54f633ffebf9dfde9e32af2a2710ccabefe02 Mon Sep 17 00:00:00 2001 From: "bo.thorsen" Date: Fri, 9 Apr 2010 11:05:23 +0200 Subject: Fix Windows compile --- sql/mysqld.cc | 5 ++++- storage/maria/ma_loghandler.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 55a889b55af..645b7498042 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2664,8 +2664,11 @@ bugs.\n"); end: #ifndef __WIN__ - /* On Windows, do not terminate, but pass control to exception filter */ + /* Terminate */ exit(1); +#else + /* On Windows, do not terminate, but pass control to exception filter */ + ; #endif } diff --git a/storage/maria/ma_loghandler.c b/storage/maria/ma_loghandler.c index 8ffaf22d1b0..be86740d822 100644 --- a/storage/maria/ma_loghandler.c +++ b/storage/maria/ma_loghandler.c @@ -1397,8 +1397,9 @@ LSN translog_get_file_max_lsn_stored(uint32 file) { LOGHANDLER_FILE_INFO info; + File fd; LINT_INIT_STRUCT(info); - File fd= open_logfile_by_number_no_cache(file); + fd= open_logfile_by_number_no_cache(file); if ((fd < 0) || (translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME)))) { -- cgit v1.2.1