fix compile error: ‘FALLOC_FL_KEEP_SIZE’ undeclared (#5708)

Summary:
add "linux/falloc.h" in env/io_posix.cc to fix compile error: ‘FALLOC_FL_KEEP_SIZE’ undeclared

Signed-off-by: sheng qiu <herbert1984106@gmail.com>
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5708

Differential Revision: D16832922

fbshipit-source-id: 30e787c4a1b5a9724a8acfd68962ff5ec5f27d3e
This commit is contained in:
sheng qiu 2019-08-16 13:55:37 -07:00 committed by Facebook Github Bot
parent 40712df9ab
commit c762efc4a9

1
env/io_posix.cc vendored
View File

@ -14,6 +14,7 @@
#include <algorithm> #include <algorithm>
#if defined(OS_LINUX) #if defined(OS_LINUX)
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/falloc.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>