Fix windows for real

This commit is contained in:
Steven Fackler 2016-10-13 20:06:01 -07:00
parent 5b29fc9d69
commit a09f46266d
1 changed files with 2 additions and 1 deletions

View File

@ -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(),