Skip to content

Commit 871f3b2

Browse files
committed
Expose ppoll on some BSDs
1 parent 6d5aa56 commit 871f3b2

File tree

1 file changed

+4
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+4
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,10 @@ extern {
922922
pub fn pthread_mutex_timedlock(lock: *mut pthread_mutex_t,
923923
abstime: *const ::timespec) -> ::c_int;
924924
pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int;
925+
pub fn ppoll(fds: *mut ::pollfd,
926+
nfds: nfds_t,
927+
timeout: *const ::timespec,
928+
sigmask: *const sigset_t) -> ::c_int;
925929
}
926930

927931
cfg_if! {

0 commit comments

Comments
 (0)