Skip to content

Commit

Permalink
Merge pull request facebook#584 from pshareghi/rocksdb-3.10-falloch
Browse files Browse the repository at this point in the history
Added falloc.h in build_detect_platform
  • Loading branch information
igorcanadi committed Apr 15, 2015
2 parents 6997aa0 + e8808b9 commit 98ef21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_tools/build_detect_platform
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98ef21d

Please sign in to comment.