Various FreeBSD improvements (#3219)

* Fix permission denied (/var/run/stalwart.pid) on FreeBSD install

* Remove jemalloc dependency on FreeBSD (which is already using jemalloc)

* Enabling binding to privileged ports on FreeBSD
This commit is contained in:
Martin
2026-07-14 08:56:05 +02:00
committed by GitHub
parent 764c2c1e1c
commit 45602a35ba
5 changed files with 14 additions and 11 deletions

View File

@@ -89,5 +89,5 @@ time = "0.3"
testcontainers = { version = "0.27", features = ["reusable-containers"] }
rust-s3 = { version = "0.37", default-features = false, features = ["tokio-rustls-tls"] }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies]
jemallocator = "0.5.0"

View File

@@ -6,10 +6,10 @@
#[cfg(test)]
use ::store::registry::bootstrap::Bootstrap;
#[cfg(not(target_env = "msvc"))]
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
use jemallocator::Jemalloc;
#[cfg(not(target_env = "msvc"))]
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;