Skip to content

Commit bbdc1cf

Browse files
committed
Fix imports
1 parent fd90dfd commit bbdc1cf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/time.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
use crate::sys::time::TimeSpec;
2-
#[cfg(target_os = "linux")]
3-
use crate::unistd::Pid;
4-
#[cfg(target_os = "linux")]
5-
use crate::Error;
2+
#[cfg(any(
3+
target_os = "freebsd",
4+
target_os = "dragonfly",
5+
target_os = "linux",
6+
target_os = "android",
7+
target_os = "emscripten",
8+
))]
9+
use crate::{unistd::Pid, Error};
610
use crate::{Errno, Result};
711
use libc::{self, clockid_t};
812
use std::mem::MaybeUninit;

0 commit comments

Comments
 (0)