diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 9a9c31dc4..8b12f3ba0 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -178,6 +178,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);