Skip to content

Commit a5c20d6

Browse files
committed
Auto merge of #1278 - ischeinkman:master, r=gnzlbg
Newlib fixes.
2 parents 68701e7 + 372ae79 commit a5c20d6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/unix/newlib/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ pub type time_t = i32;
2525
pub type useconds_t = u32;
2626

2727
s! {
28-
pub struct in_addr {
29-
pub s_addr: ::in_addr_t,
30-
}
31-
32-
pub struct ip_mreq {
33-
pub imr_multiaddr: in_addr,
34-
pub imr_interface: in_addr,
35-
}
36-
3728
pub struct sockaddr {
3829
pub sa_family: sa_family_t,
3930
pub sa_data: [::c_char; 14],
@@ -500,10 +491,6 @@ pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
500491
pub const IFF_ALTPHYS: ::c_int = IFF_LINK2; // use alternate physical connection
501492
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
502493

503-
pub const IPPROTO_IP: ::c_int = 0;
504-
pub const IPPROTO_UDP: ::c_int = 17;
505-
pub const IPPROTO_TCP: ::c_int = 6;
506-
507494
pub const TCP_NODELAY: ::c_int = 8193;
508495
pub const TCP_MAXSEG: ::c_int = 8194;
509496

0 commit comments

Comments
 (0)