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:
@@ -40,7 +40,7 @@ migration = { path = "../migration" }
|
||||
tokio = { version = "1.47", features = ["full"] }
|
||||
rustls = { version = "0.23.5", default-features = false, features = ["std", "aws_lc_rs", "tls12"] }
|
||||
|
||||
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||
[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies]
|
||||
jemallocator = "0.5.0"
|
||||
|
||||
[features]
|
||||
|
||||
@@ -23,10 +23,10 @@ use utils::wait_for_shutdown;
|
||||
#[cfg(feature = "dev_mode")]
|
||||
pub mod test_data;
|
||||
|
||||
#[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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user