mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
fix(df): Add support for freebsd
This commit is contained in:
parent
8545f03e0f
commit
f9456e80c3
1 changed files with 7 additions and 4 deletions
|
@ -32,17 +32,20 @@ use std::collections::HashSet;
|
|||
use std::ffi::CString;
|
||||
use std::{env, mem};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||
use libc::c_int;
|
||||
#[cfg(target_os = "macos")]
|
||||
use libc::statfs;
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||
use std::ffi::CStr;
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "windows"))]
|
||||
use std::ptr;
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||
use std::slice;
|
||||
|
||||
#[cfg(target_os = "freebsd")]
|
||||
use libc::{c_char, fsid_t, uid_t};
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use std::fs::File;
|
||||
#[cfg(target_os = "linux")]
|
||||
|
|
Loading…
Reference in a new issue