]> git.lizzy.rs Git - rust.git/blobdiff - src/libnative/io/c_win32.rs
auto merge of #14696 : jakub-/rust/dead-struct-fields, r=alexcrichton
[rust.git] / src / libnative / io / c_win32.rs
index 1ec25933eec3c2ea1bfafc0cb2fe6156f7a51ca7..e855b8bd4f2647f6efa983d526eb21d3f106e1c2 100644 (file)
@@ -20,6 +20,7 @@
 static FD_SETSIZE: uint = 64;
 pub static MSG_DONTWAIT: libc::c_int = 0;
 
+#[repr(C)]
 pub struct WSADATA {
     pub wVersion: libc::WORD,
     pub wHighVersion: libc::WORD,
@@ -32,6 +33,7 @@ pub struct WSADATA {
 
 pub type LPWSADATA = *mut WSADATA;
 
+#[repr(C)]
 pub struct fd_set {
     fd_count: libc::c_uint,
     fd_array: [libc::SOCKET, ..FD_SETSIZE],