• Florian Weimer's avatar
    rocksdb: Define _GNU_SOURCE during fallocate CMake probe · f575de39
    Florian Weimer authored
    The glibc headers declare fallocate only if _GNU_SOURCE is defined.
    Without this change, the probe fails with C compilers which do not
    support implicit function declarations even if the system does in
    fact support the fallocate function.
    
    Upstream rocksdb does not need this because the probe is run with the
    C++ compiler, and current g++ versions define _GNU_SOURCE
    automatically.
    f575de39
build_rocksdb.cmake 17.4 KB