Index: crates/main/src/main.rs
--- crates/main/src/main.rs.orig
+++ crates/main/src/main.rs
@@ -34,10 +34,10 @@ mod cpu;
 #[cfg(feature = "dev_mode")]
 pub mod test_data;
 
-#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
+#[cfg(not(any(target_env = "msvc", target_os = "freebsd", target_os = "openbsd")))]
 use tikv_jemallocator::Jemalloc;
 
-#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
+#[cfg(not(any(target_env = "msvc", target_os = "freebsd", target_os = "openbsd")))]
 #[global_allocator]
 static GLOBAL: Jemalloc = Jemalloc;
 
