Skip to content

Commit 72ed47d

Browse files
committed
Expose sendfile on supported BSDs
1 parent 22e9764 commit 72ed47d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sys/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ pub mod memfd;
1818
#[macro_use]
1919
pub mod ioctl;
2020

21-
#[cfg(any(target_os = "linux", target_os = "android"))]
21+
#[cfg(any(target_os = "android",
22+
target_os = "dragonfly",
23+
target_os = "freebsd",
24+
target_os = "ios",
25+
target_os = "linux",
26+
target_os = "macos"))]
2227
pub mod sendfile;
2328

2429
pub mod signal;

0 commit comments

Comments
 (0)