From d3dce6ae3a4108743f80b3c7d72fa8ee91e6a999 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Wed, 16 Oct 2019 11:47:00 +0900 Subject: [PATCH] Conditionally define bzip2 error callback function --- librocksdb-sys/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/librocksdb-sys/src/lib.rs b/librocksdb-sys/src/lib.rs index 02e3514..dd471bc 100644 --- a/librocksdb-sys/src/lib.rs +++ b/librocksdb-sys/src/lib.rs @@ -22,6 +22,7 @@ use libc::c_int; include!(concat!(env!("OUT_DIR"), "/bindings.rs")); +#[cfg(feature = "bzip2")] #[no_mangle] pub fn bz_internal_error(errcode: c_int) { panic!("bz internal error: {}", errcode);