enable netbsd compilation

This commit is contained in:
c0repwn3r 2023-07-12 11:47:38 -04:00
parent be4dc0d3a2
commit 9ed836d028
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,10 @@
use std::path::PathBuf;
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "netbsd"))]
pub fn config_base() -> PathBuf {
PathBuf::from("/etc/tfclient")
}
#[cfg(target_os = "windows")]
pub fn config_base() -> PathBuf {
PathBuf::from("C:\\Program Data\\e3team\\tfclient")
@ -24,8 +25,6 @@ pub fn config_base() -> PathBuf {
compile_error!("tfclient cannot be compiled for dragonfly");
#[cfg(target_os = "openbsd")]
compile_error!("tfclient cannot be compiled for openbsd");
#[cfg(target_os = "netbsd")]
compile_error!("tfclient cannot be compiled for netbsd");
pub fn config_dir(instance: &str) -> PathBuf {
config_base().join(format!("{}/", instance))