diff options
author | unknown <monty@hundin.mysql.fi> | 2001-10-31 20:28:43 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-10-31 20:28:43 +0200 |
commit | 679e3810307de3f42619304430f31977ad8fdd83 (patch) | |
tree | 92b080e5371729d9f2b8777445095eb5e0545575 /innobase/os | |
parent | 03f6fdd575f71aacd4b6e782c9df4b929f8222b1 (diff) | |
download | mariadb-git-679e3810307de3f42619304430f31977ad8fdd83.tar.gz |
Portability fixes
Diffstat (limited to 'innobase/os')
-rw-r--r-- | innobase/os/os0file.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 60d65186e11..9fecf2c04fd 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -817,7 +817,9 @@ try_again: return(TRUE); } #endif +#ifdef __WIN__ error_handling: +#endif retry = os_file_handle_error(file, NULL); if (retry) { @@ -906,7 +908,9 @@ try_again: return(TRUE); } #endif +#ifdef __WIN__ error_handling: +#endif retry = os_file_handle_error(file, name); if (retry) { @@ -1150,6 +1154,8 @@ os_aio_get_array_and_local_segment( /*********************************************************************** Gets an integer value designating a specified aio array. This is used to give numbers to signals in Posix aio. */ + +#if !defined(WIN_ASYNC_IO) && defined(POSIX_ASYNC_IO) static ulint os_aio_get_array_no( @@ -1203,6 +1209,7 @@ os_aio_get_array_from_no( return(NULL); } } +#endif /* if !defined(WIN_ASYNC_IO) && defined(POSIX_ASYNC_IO) */ /*********************************************************************** Requests for a slot in the aio array. If no slot is available, waits until @@ -1955,7 +1962,7 @@ consecutive_loop: } } - srv_io_thread_op_info[global_segment] = "doing file i/o"; + srv_io_thread_op_info[global_segment] = (char*) "doing file i/o"; /* Do the i/o with ordinary, synchronous i/o functions: */ if (slot->type == OS_FILE_WRITE) { @@ -1967,7 +1974,7 @@ consecutive_loop: } ut_a(ret); - srv_io_thread_op_info[global_segment] = "file i/o done"; + srv_io_thread_op_info[global_segment] = (char*) "file i/o done"; /* printf("aio: %lu consecutive %lu:th segment, first offs %lu blocks\n", n_consecutive, global_segment, slot->offset @@ -2024,7 +2031,7 @@ wait_for_io: os_mutex_exit(array->mutex); - srv_io_thread_op_info[global_segment] = "waiting for i/o request"; + srv_io_thread_op_info[global_segment] = (char*) "waiting for i/o request"; os_event_wait(os_aio_segment_wait_events[global_segment]); |