Commit 140ef1b9 authored by Steven Fackler's avatar Steven Fackler
Browse files

Fix tests on windows

parent 14355607
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -169,9 +169,10 @@ impl Write for UdpConnected {
    #[cfg(windows)]
    fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
        use std::os::windows::prelude::*;
        use libc;
        use ws2_32;

        let n = unsafe {
            libc::send(self.0.as_raw_socket(),
            ws2_32::send(self.0.as_raw_socket(),
                         buf.as_ptr() as *const _,
                         buf.len() as libc::c_int,
                         0)