Skip to content

Commit a8f7258

Browse files
kworrThomasdezeeuw
authored andcommitted
fix build on DragonFly: IP_RECVTOS and join_leave_ssm_v4() disabled
1 parent 7127683 commit a8f7258

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ impl Socket {
14181418
/// incoming packets. It contains a byte which specifies the
14191419
/// Type of Service/Precedence field of the packet header.
14201420
#[cfg(not(any(
1421+
target_os = "dragonfly",
14211422
target_os = "fuchsia",
14221423
target_os = "illumos",
14231424
target_os = "netbsd",
@@ -1444,6 +1445,7 @@ impl Socket {
14441445
///
14451446
/// [`set_recv_tos`]: Socket::set_recv_tos
14461447
#[cfg(not(any(
1448+
target_os = "dragonfly",
14471449
target_os = "fuchsia",
14481450
target_os = "illumos",
14491451
target_os = "netbsd",

src/sys/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ pub(crate) use libc::{MSG_TRUNC, SO_OOBINLINE};
7575
#[cfg(all(feature = "all", not(target_os = "redox")))]
7676
pub(crate) use libc::IP_HDRINCL;
7777
#[cfg(not(any(
78+
target_os = "dragonfly",
7879
target_os = "fuchsia",
7980
target_os = "illumos",
8081
target_os = "netbsd",

tests/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ test!(IPv4 ttl, set_ttl(40));
11861186
test!(IPv4 tos, set_tos(96));
11871187

11881188
#[cfg(not(any(
1189+
target_os = "dragonfly",
11891190
target_os = "fuchsia",
11901191
target_os = "illumos",
11911192
target_os = "netbsd",
@@ -1244,6 +1245,7 @@ fn join_leave_multicast_v4_n() {
12441245

12451246
#[test]
12461247
#[cfg(not(any(
1248+
target_os = "dragonfly",
12471249
target_os = "haiku",
12481250
target_os = "netbsd",
12491251
target_os = "redox",

0 commit comments

Comments
 (0)