summaryrefslogtreecommitdiff
path: root/storage/xtradb/os
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-07-02 17:45:19 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2018-07-02 17:45:19 +0100
commita2c0376e08d80d7b7dad8713d1df334b2b81eff9 (patch)
treeaa00a366e32ee027c57d8ddf231b9efc18365848 /storage/xtradb/os
parent8c5d64dafb3051749f3762cbad88553568abbb16 (diff)
downloadmariadb-git-a2c0376e08d80d7b7dad8713d1df334b2b81eff9.tar.gz
Fix build on non-Windows, broken by 0897a25c0f0b9b865
Diffstat (limited to 'storage/xtradb/os')
-rw-r--r--storage/xtradb/os/os0file.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/xtradb/os/os0file.cc b/storage/xtradb/os/os0file.cc
index bf9db50b7f7..4246bfbff70 100644
--- a/storage/xtradb/os/os0file.cc
+++ b/storage/xtradb/os/os0file.cc
@@ -1691,6 +1691,7 @@ os_file_set_atomic_writes(
#endif
}
+#ifdef _WIN32
/** Check that IO of specific size is possible for the file
opened with FILE_FLAG_NO_BUFFERING.
@@ -1715,6 +1716,7 @@ static bool unbuffered_io_possible(HANDLE file, size_t io_size)
}
return true;
}
+#endif
/****************************************************************//**
NOTE! Use the corresponding macro os_file_create(), not directly