Skip to content

Commit 2d44af4

Browse files
committed
Fix typo from aeac055
1 parent aeac055 commit 2d44af4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sys/socket/ffi.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
pub use libc::{socket, listen, bind, accept, connect, setsockopt, sendto, recvfrom, getsockname, getpeername, recv, send};
55

66
use libc::{c_int, c_void, socklen_t, size_t, ssize_t};
7-
use sys::uio::IoVec;
87

8+
#[cfg(target_os = "macos")]
9+
use libc::c_uint;
10+
11+
use sys::uio::IoVec;
912

1013
#[cfg(target_os = "linux")]
1114
pub type type_of_cmsg_len = size_t;
@@ -15,7 +18,7 @@ pub type type_of_cmsg_len = socklen_t;
1518

1619
// OSX always aligns struct cmsghdr as if it were a 32-bit OS
1720
#[cfg(target_os = "macos")]
18-
pub type type_of_cmsg_data = uint32_t;
21+
pub type type_of_cmsg_data = c_uint;
1922

2023
#[cfg(not(target_os = "macos"))]
2124
pub type type_of_cmsg_data = size_t;

0 commit comments

Comments
 (0)