Skip to content

Commit

Permalink
Fix with conditional compilation instead
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Dec 4, 2023
1 parent 4486aaf commit b309ad4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ pub use libc::{
EROFS, ESPIPE, ESRCH, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV,
};

#[cfg(not(target_os = "freebsd"))]
pub use libc::{EENODATA, ENOSR, ENOSTR, ETIME};

#[derive(Copy, Clone, PartialEq, Eq)]
pub enum Error {
Bug,
Expand Down

0 comments on commit b309ad4

Please sign in to comment.