Commit a09f4626 authored by Steven Fackler's avatar Steven Fackler
Browse files

Fix windows for real

parent 5b29fc9d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -168,8 +168,9 @@ impl Write for UdpConnected {

    #[cfg(windows)]
    fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
        extern crate ws2_32;
        use std::os::windows::prelude::*;
        use ws2_32;
        use libc;

        let n = unsafe {
            ws2_32::send(self.0.as_raw_socket(),