summaryrefslogtreecommitdiff
path: root/storage/rocksdb/build_rocksdb.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'storage/rocksdb/build_rocksdb.cmake')
-rw-r--r--storage/rocksdb/build_rocksdb.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake
index 096185af08f..27a8616cfda 100644
--- a/storage/rocksdb/build_rocksdb.cmake
+++ b/storage/rocksdb/build_rocksdb.cmake
@@ -134,8 +134,8 @@ option(WITH_FALLOCATE "build with fallocate" ON)
if(WITH_FALLOCATE AND UNIX)
include(CheckCSourceCompiles)
CHECK_C_SOURCE_COMPILES("
+#define _GNU_SOURCE
#include <fcntl.h>
-#include <linux/falloc.h>
int main() {
int fd = open(\"/dev/null\", 0);
fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);