diff options
Diffstat (limited to 'src/cmake')
-rw-r--r-- | src/cmake/syscall.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmake/syscall.cmake b/src/cmake/syscall.cmake index 1e0a559b5df..aa3bac45372 100644 --- a/src/cmake/syscall.cmake +++ b/src/cmake/syscall.cmake @@ -34,3 +34,12 @@ if (HAVE_GETCPU) add_definitions(-DHAVE_GETCPU) endif() +check_c_source_compiles(" + #define _GNU_SOURCE + #include <fcntl.h> + int main() { return fcntl64 (0, 0); } +" HAVE_FCNTL64) + +if (HAVE_FCNTL64) + add_definitions(-DHAVE_FCNTL64) +endif() |