mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 20:55:47 +01:00
Fix project not compiling on BSD & Solaris systems
This commit is contained in:
parent
05c6c1fbce
commit
959c32c01e
1 changed files with 14 additions and 1 deletions
|
|
@ -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::{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue