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
main
sheng qiu 5 years ago committed by Facebook Github Bot
parent 40712df9ab
commit c762efc4a9
  1. 1
      env/io_posix.cc

1
env/io_posix.cc vendored

@ -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>

Loading…
Cancel
Save