summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-05-28 02:00:34 +0300
committerunknown <monty@mysql.com>2004-05-28 02:00:34 +0300
commitd1306dfa9df20972f20d1973042e0164a3183919 (patch)
tree0172cde8317cee600aceb317663b2c13ce7701f0 /innobase/os
parentb9c825e4a03781dec314923671d6daa9584cbbb1 (diff)
downloadmariadb-git-d1306dfa9df20972f20d1973042e0164a3183919.tar.gz
Portability fix for HPUX
configure.in: Ensure that innodb gets system specific CFLAGS and CXXFLAGS innobase/os/os0file.c: Don't use pread/pwrite on systems where these are not working. This fixes a bug on HPUX, where InnoDB didn't create the ibdata1 file correctly.
Diffstat (limited to 'innobase/os')
-rw-r--r--innobase/os/os0file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c
index 81566337218..681c4e487e7 100644
--- a/innobase/os/os0file.c
+++ b/innobase/os/os0file.c
@@ -1111,7 +1111,7 @@ os_file_pread(
os_n_file_reads++;
-#ifdef HAVE_PREAD
+#if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)
os_mutex_enter(os_file_count_mutex);
os_file_n_pending_preads++;
os_mutex_exit(os_file_count_mutex);
@@ -1186,7 +1186,7 @@ os_file_pwrite(
os_n_file_writes++;
-#ifdef HAVE_PWRITE
+#if defined(HAVE_PWRITE) && !defined(HAVE_BROKEN_PREAD)
os_mutex_enter(os_file_count_mutex);
os_file_n_pending_pwrites++;
os_mutex_exit(os_file_count_mutex);