From 959c32c01e99e72288c78f2dee182d990acb6063 Mon Sep 17 00:00:00 2001 From: kol3rby Date: Mon, 9 Feb 2026 11:03:00 +0100 Subject: [PATCH] Fix project not compiling on BSD & Solaris systems --- src/concepts/plugin.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/concepts/plugin.rs b/src/concepts/plugin.rs index 62ceaf3..8365d97 100644 --- a/src/concepts/plugin.rs +++ b/src/concepts/plugin.rs @@ -1,4 +1,17 @@ -use std::{collections::BTreeMap, io::Error, os::linux::fs::MetadataExt, process::Stdio}; +use std::{collections::BTreeMap, io::Error, process::Stdio}; + +#[cfg(target_os = "linux")] +use std::os::linux::fs::MetadataExt; +#[cfg(target_os = "freebsd")] +use std::os::freebsd::fs::MetadataExt; +#[cfg(target_os = "openbsd")] +use std::os::openbsd::fs::MetadataExt; +#[cfg(target_os = "netbsd")] +use std::os::netbsd::fs::MetadataExt; +#[cfg(target_os = "solaris")] +use std::os::solaris::fs::MetadataExt; +#[cfg(target_os = "illumos")] +use std::os::illumos::fs::MetadataExt; use serde::{Deserialize, Serialize}; use tokio::{