From d2aa8b598d83d198f5a5848ce297d5b0ee855c6b Mon Sep 17 00:00:00 2001 From: zaidoon Date: Sun, 25 Feb 2024 20:58:05 -0500 Subject: [PATCH] gate malloc-usable-size to linux only --- librocksdb-sys/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index 3592b92..ea7a2d1 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -90,7 +90,8 @@ fn build_rocksdb() { config.define("USE_RTTI", Some("1")); } - if cfg!(feature = "malloc-usable-size") { + #[cfg(feature = "malloc-usable-size")] + if target.contains("linux") { config.define("ROCKSDB_MALLOC_USABLE_SIZE", Some("1")); }