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 myabandeh
parent e3169e3ea8
commit e69ce1041f

1
env/io_posix.cc vendored
View File

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