From fca9632e5038b9bb134f11d95ab6018100ae40e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Thu, 29 Oct 2026 08:18:27 +0100 Subject: [PATCH] Make `struct flock` match `struct flock64` on all ABIs --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56e945a..052c0cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,13 @@ target_link_libraries( rocksdb_facebook ) +target_compile_definitions( + rocksdb + PRIVATE + _GNU_SOURCE + _FILE_OFFSET_BITS=64 +) + if(WIN32) target_compile_options( rocksdb