Fixed FALLOC_FL_KEEP_SIZE undefined (#5614)

Summary:
Fix `error: ‘FALLOC_FL_KEEP_SIZE’` undeclared error in `io_posix.cc` during Vagrant build in CentOS as per issue https://github.com/facebook/rocksdb/issues/5599
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5614

Differential Revision: D17217960

fbshipit-source-id: ef736c51b16833107fd9ccc7917ed1def2a8d02c
This commit is contained in:
Richard He 2019-09-05 17:33:35 -07:00 committed by Facebook Github Bot
parent eae9f040eb
commit cfc20019d1

2
env/io_posix.cc vendored
View File

@ -14,8 +14,10 @@
#include <algorithm>
#if defined(OS_LINUX)
#include <linux/fs.h>
#ifndef FALLOC_FL_KEEP_SIZE
#include <linux/falloc.h>
#endif
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>