Commit 2f8ec0e0 authored by Wang Yuan's avatar Wang Yuan Committed by Oran Agra
Browse files

Fix the wrong detection of sync_file_range system call (#9371)

If we want to check `defined(SYNC_FILE_RANGE_WAIT_BEFORE)`, we should include fcntl.h.
otherwise, SYNC_FILE_RANGE_WAIT_BEFORE is not defined, and there is alway not `sync_file_range` system call.
Introduced by #8532

(cherry picked from commit 8edc3cd6)
parent 09c63c45
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#ifdef __linux__ #ifdef __linux__
#include <features.h> #include <features.h>
#include <fcntl.h>
#endif #endif
/* Define redis_fstat to fstat or fstat64() */ /* Define redis_fstat to fstat or fstat64() */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment