From 4763f40b63cdb5c6ae002da05ced5df8943dc0ec Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Mon, 7 Aug 2023 01:42:07 +0300 Subject: [PATCH] openbsd minimal build options --- librocksdb-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index ead7e8c..83efbed 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -162,6 +162,10 @@ fn build_rocksdb() { config.define("OS_FREEBSD", None); config.define("ROCKSDB_PLATFORM_POSIX", None); config.define("ROCKSDB_LIB_IO_POSIX", None); + } else if target.contains("openbsd") { + config.define("OS_OPENBSD", None); + config.define("ROCKSDB_PLATFORM_POSIX", None); + config.define("ROCKSDB_LIB_IO_POSIX", None); } else if target.contains("windows") { link("rpcrt4", false); link("shlwapi", false);