Skip to content

Commit 494901a

Browse files
committed
Fix windows recvfrom definition
1 parent 39abcef commit 494901a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/liblibc/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6043,7 +6043,6 @@ pub mod funcs {
60436043
use types::common::c95::{c_void};
60446044
use types::os::common::bsd44::{socklen_t, sockaddr, SOCKET};
60456045
use types::os::arch::c95::c_int;
6046-
use types::os::arch::posix88::ssize_t;
60476046

60486047
extern "system" {
60496048
pub fn socket(domain: c_int, ty: c_int, protocol: c_int) -> SOCKET;
@@ -6068,7 +6067,7 @@ pub mod funcs {
60686067
flags: c_int) -> c_int;
60696068
pub fn recvfrom(socket: SOCKET, buf: *mut c_void, len: c_int,
60706069
flags: c_int, addr: *mut sockaddr,
6071-
addrlen: *mut c_int) -> ssize_t;
6070+
addrlen: *mut c_int) -> c_int;
60726071
pub fn sendto(socket: SOCKET, buf: *const c_void, len: c_int,
60736072
flags: c_int, addr: *const sockaddr,
60746073
addrlen: c_int) -> c_int;

0 commit comments

Comments
 (0)