Merge pull request #584 from pshareghi/rocksdb-3.10-falloch

Added falloc.h in build_detect_platform
This commit is contained in:
Igor Canadi 2015-04-15 14:56:36 -07:00
commit 98ef21d2ff
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ else
# Test whether fallocate is available
$CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null <<EOF
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
int fd = open("/dev/null", 0);
fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);