File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ pub type blkcnt_t = i64;
66pub type socklen_t = u32 ;
77pub type sa_family_t = u8 ;
88pub type pthread_t = :: uintptr_t ;
9+ pub type nfds_t = :: c_uint ;
910
1011s ! {
1112 pub struct sockaddr {
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pub type in_addr_t = u32;
1010pub type in_port_t = u16 ;
1111pub type sighandler_t = :: size_t ;
1212pub type cc_t = :: c_uchar ;
13- pub type nfds_t = :: c_ulong ;
1413
1514pub enum DIR { }
1615
@@ -562,6 +561,8 @@ extern {
562561 #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
563562 link_name = "recvmsg$UNIX2003" ) ]
564563 pub fn recvmsg ( fd : :: c_int , msg : * mut msghdr , flags : :: c_int ) -> :: ssize_t ;
564+ #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
565+ link_name = "poll$UNIX2003" ) ]
565566 pub fn poll ( fds : * mut pollfd , nfds : nfds_t , timeout : :: c_int ) -> :: c_int ;
566567}
567568
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ pub type sigset_t = c_ulong;
2222pub type time64_t = i64 ;
2323pub type fsfilcnt_t = :: c_ulong ;
2424pub type fsblkcnt_t = :: c_ulong ;
25+ pub type nfds_t = :: c_uint ;
2526
2627s ! {
2728 pub struct stat {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub type fsfilcnt_t = ::c_ulong;
1414pub type key_t = :: c_int ;
1515pub type shmatt_t = :: c_ulong ;
1616pub type mqd_t = :: c_int ;
17+ pub type nfds_t = :: c_ulong ;
1718
1819pub enum fpos64_t { } // TODO: fill this out with a struct
1920
You can’t perform that action at this time.
0 commit comments