Skip to content

Commit 1d023aa

Browse files
committed
Expand ECN support
libc's CMSG macros got built out to many more platforms. There may remain some obscure platforms where this will still fail to build, but we can account for them as they show up in practice.
1 parent 47bc288 commit 1d023aa

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

quinn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ untrusted = "0.6.2"
3535
webpki = "0.19"
3636
webpki-roots = "0.16"
3737
ct-logs = "0.5"
38-
libc = "0.2.46"
38+
libc = "0.2.48"
3939
mio = "0.6"
4040

4141
[dev-dependencies]

quinn/src/platform/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
use quinn_proto::EcnCodepoint;
33
use std::{io, net::SocketAddr};
44

5-
// The Linux code should work for most unixes, but as of this writing nobody's ported the
6-
// CMSG_... macros to the libc crate for any of the BSDs.
7-
#[cfg(target_os = "linux")]
5+
#[cfg(unix)]
86
mod cmsg;
9-
#[cfg(target_os = "linux")]
10-
mod linux;
7+
#[cfg(unix)]
8+
mod unix;
119

1210
// No ECN support
13-
#[cfg(not(target_os = "linux"))]
11+
#[cfg(not(unix))]
1412
mod fallback;
1513

1614
pub trait UdpExt {
File renamed without changes.

0 commit comments

Comments
 (0)