summaryrefslogtreecommitdiffstats
path: root/cmake/os/SunOS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/os/SunOS.cmake')
-rw-r--r--cmake/os/SunOS.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/os/SunOS.cmake b/cmake/os/SunOS.cmake
index 3a9d2dcc..3d99d347 100644
--- a/cmake/os/SunOS.cmake
+++ b/cmake/os/SunOS.cmake
@@ -17,6 +17,10 @@ INCLUDE(CheckSymbolExists)
INCLUDE(CheckCSourceRuns)
INCLUDE(CheckCSourceCompiles)
+# fcntl(fd, F_SETFL, O_DIRECT) is not supported,
+# and directio(3C) would only work on UFS or NFS, not ZFS.
+SET(HAVE_FCNTL_DIRECT 0 CACHE INTERNAL "")
+
# Enable 64 bit file offsets
SET(_FILE_OFFSET_BITS 64)