diff --git a/util/env_posix.cc b/util/env_posix.cc index e81c59dcc..2be524e95 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -1297,7 +1297,7 @@ class PosixEnv : public Env { } bool SupportsFastAllocate(const std::string& path) { -#ifdef OS_LINUX +#ifdef ROCKSDB_FALLOCATE_PRESENT struct statfs s; if (statfs(path.c_str(), &s)){ return false;