From 9269056e8e6543ae957a32141e33fd425e9e94d2 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Sun, 23 Jan 2022 19:04:17 -0600 Subject: Add accept4 on supported platforms --- src/sys/socket/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sys/socket') diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 42a032c9..54327951 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -1794,8 +1794,13 @@ pub fn accept(sockfd: RawFd) -> Result { target_arch = "x86_64" ) ), + target_os = "dragonfly", + target_os = "emscripten", target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos", target_os = "linux", + target_os = "netbsd", target_os = "openbsd"))] pub fn accept4(sockfd: RawFd, flags: SockFlag) -> Result { let res = unsafe { libc::accept4(sockfd, ptr::null_mut(), ptr::null_mut(), flags.bits()) }; -- cgit v1.2.3