From 6a3f93f4861ea2811246753286c0e05673cef065 Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Thu, 11 Oct 2001 12:49:44 +0300 Subject: [PATCH] InnoDB portability fixes --- innobase/configure.in | 2 +- innobase/os/os0file.c | 4 ++++ mysql-test/r/innodb.result | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/innobase/configure.in b/innobase/configure.in index 48bb9504219..b606ecfffc0 100644 --- a/innobase/configure.in +++ b/innobase/configure.in @@ -38,7 +38,7 @@ AC_CHECK_HEADERS(aio.h sched.h) AC_CHECK_SIZEOF(int, 4) AC_CHECK_FUNCS(sched_yield) AC_CHECK_FUNCS(fdatasync) -AC_CHECK_FUNCS(localtime_r) +#AC_CHECK_FUNCS(localtime_r) # Already checked by MySQL #AC_C_INLINE Already checked in MySQL AC_C_BIGENDIAN diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 70813f2f7e1..ced601d4de1 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -603,6 +603,7 @@ os_file_pread( #ifdef HAVE_PREAD return(pread(file, buf, n, offs)); #else + { ssize_t ret; ulint i; @@ -624,6 +625,7 @@ os_file_pread( os_mutex_exit(os_file_seek_mutexes[i]); return(ret); + } #endif } @@ -660,6 +662,7 @@ os_file_pwrite( return(ret); #else + { ulint i; /* Protect the seek / write operation with a mutex */ @@ -691,6 +694,7 @@ os_file_pwrite( os_mutex_exit(os_file_seek_mutexes[i]); return(ret); + } #endif } #endif diff --git a/mysql-test/r/innodb.result b/mysql-test/r/innodb.result index 913f4226f1c..9553f78f73c 100644 --- a/mysql-test/r/innodb.result +++ b/mysql-test/r/innodb.result @@ -134,8 +134,8 @@ Table Op Msg_type Msg_text test.t1 optimize error The handler for the table doesn't support check/repair Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment t1 0 PRIMARY 1 id A 2 NULL NULL -t1 1 parent_id 1 parent_id A 4 NULL NULL -t1 1 level 1 level A 4 NULL NULL +t1 1 parent_id 1 parent_id A 2 NULL NULL +t1 1 level 1 level A 2 NULL NULL gesuchnr benutzer_id 1 1 2 1 @@ -150,7 +150,7 @@ a b Table Op Msg_type Msg_text test.t1 analyze error The handler for the table doesn't support check/repair Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment -t1 1 skr 1 a A 3 NULL NULL +t1 1 skr 1 a A 1 NULL NULL a b 1 n after rollback