Skip to content

Commit

Permalink
Fix typo from aeac055
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Aug 8, 2016
1 parent aeac055 commit 2d44af4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sys/socket/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 2d44af4

Please sign in to comment.