From 325c43c6d5b5b8945dd8bee3575500887923b2cf Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Wed, 2 May 2018 19:08:41 -0600 Subject: Implement sendfile on FreeBSD and Darwin --- src/sys/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sys/mod.rs') diff --git a/src/sys/mod.rs b/src/sys/mod.rs index db03dece..e75e9d88 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -49,8 +49,11 @@ pub mod reboot; pub mod select; -// TODO: Add support for dragonfly, freebsd, and ios/macos. -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(any(target_os = "android", + target_os = "freebsd", + target_os = "ios", + target_os = "linux", + target_os = "macos"))] pub mod sendfile; pub mod signal; -- cgit v1.2.3