From 2d44af49ab37e4d904d80390244cb46f881c8352 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 8 Aug 2016 17:40:57 -0600 Subject: [PATCH] Fix typo from aeac05568783ba211b66929c9fd6ca49ae78fb57 --- src/sys/socket/ffi.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sys/socket/ffi.rs b/src/sys/socket/ffi.rs index 47febe53f3..55a47eb642 100644 --- a/src/sys/socket/ffi.rs +++ b/src/sys/socket/ffi.rs @@ -4,8 +4,11 @@ pub use libc::{socket, listen, bind, accept, connect, setsockopt, sendto, recvfrom, getsockname, getpeername, recv, send}; use libc::{c_int, c_void, socklen_t, size_t, ssize_t}; -use sys::uio::IoVec; +#[cfg(target_os = "macos")] +use libc::c_uint; + +use sys::uio::IoVec; #[cfg(target_os = "linux")] pub type type_of_cmsg_len = size_t; @@ -15,7 +18,7 @@ pub type type_of_cmsg_len = socklen_t; // OSX always aligns struct cmsghdr as if it were a 32-bit OS #[cfg(target_os = "macos")] -pub type type_of_cmsg_data = uint32_t; +pub type type_of_cmsg_data = c_uint; #[cfg(not(target_os = "macos"))] pub type type_of_cmsg_data = size_t;