summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Thaller <alexander.thaller@trivago.com>2021-01-03 00:39:12 +0100
committerAlexander Thaller <alexander.thaller@trivago.com>2021-01-03 00:41:45 +0100
commitd965259685205e5509a6886c64d8ea9db1135e39 (patch)
tree729faf69783e81226f65d50251bfa029d9118bab /src
parent8cff207a136258977b1d944955181fd477b11ccc (diff)
downloadnix-d965259685205e5509a6886c64d8ea9db1135e39.zip
Fix fcntl for FreeBSD
Need to use the right cfg option for the conditional compilation. target_os is the right option to use when targeting FreeBSD. target_env was used before which seems to be a typo.
Diffstat (limited to 'src')
-rw-r--r--src/fcntl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 1581d3a7..d2242dac 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -20,7 +20,7 @@ use crate::sys::uio::IoVec; // For vmsplice
target_os = "fuchsia",
any(target_os = "wasi", target_env = "wasi"),
target_env = "uclibc",
- target_env = "freebsd"
+ target_os = "freebsd"
))]
pub use self::posix_fadvise::*;
@@ -587,7 +587,7 @@ pub fn fallocate(
target_os = "fuchsia",
any(target_os = "wasi", target_env = "wasi"),
target_env = "uclibc",
- target_env = "freebsd"
+ target_os = "freebsd"
))]
mod posix_fadvise {
use crate::errno::Errno;