summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-10-11 12:49:44 +0300
committerunknown <monty@hundin.mysql.fi>2001-10-11 12:49:44 +0300
commit6f2d56162b2b3c1117780ddc2686a5369bd172db (patch)
tree8a6808563008b096f1deb33b8ec6565633fafbe3 /innobase/os
parent1904897be71cba7e6f2cf1192ba0cc2e8d907e00 (diff)
downloadmariadb-git-6f2d56162b2b3c1117780ddc2686a5369bd172db.tar.gz
InnoDB portability fixes
innobase/configure.in: Remove LOCALTIME_R (Already checked in config.h) innobase/os/os0file.c: Fix syntax bug when using HAVE_PREAD/HAVE_PWRITE mysql-test/r/innodb.result: Update results
Diffstat (limited to 'innobase/os')
-rw-r--r--innobase/os/os0file.c4
1 files changed, 4 insertions, 0 deletions
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