From: Pooya Shareghi Date: Tue, 14 Apr 2015 00:56:12 +0000 (-0700) Subject: Added falloc.h in build_detect_platform X-Git-Tag: rocksdb-3.10.2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98a2fd2f2d2629006f41f3be055a853fd636381e;p=rocksdb.git Added falloc.h in build_detect_platform On Centos 6, you need to explicitely include linux/falloc.h which is whele the FALLOC_FL_* flags are defined. Otherwise, the fallocate() support test defined in build_detect_platform will fail. Signed-off-by: Pooya Shareghi --- diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 9052e77bb..9b6ab1400 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -177,6 +177,7 @@ else # Test whether fallocate is available $CXX $CFLAGS -x c++ - -o /dev/null 2>/dev/null < + #include int main() { int fd = open("/dev/null", 0); fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);