Merge pull request #339 from ryoqun/conditional-bz2-fn

Conditionally define bzip2 error callback function
master
Jordan Terrell 5 years ago committed by GitHub
commit cc4d98a482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      librocksdb-sys/src/lib.rs

@ -22,6 +22,7 @@ use libc::c_int;
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[cfg(feature = "bzip2")]
#[no_mangle] #[no_mangle]
pub fn bz_internal_error(errcode: c_int) { pub fn bz_internal_error(errcode: c_int) {
panic!("bz internal error: {}", errcode); panic!("bz internal error: {}", errcode);

Loading…
Cancel
Save