Skip to content

Commit 890715f

Browse files
kworrThomasdezeeuw
authored andcommitted
fix build on DragonFly: IP_RECVTOS and join_leave_ssm_v4() disabled
1 parent 22b15a0 commit 890715f

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
@@ -1395,6 +1395,7 @@ impl Socket {
13951395
/// incoming packets. It contains a byte which specifies the
13961396
/// Type of Service/Precedence field of the packet header.
13971397
#[cfg(not(any(
1398+
target_os = "dragonfly",
13981399
target_os = "fuchsia",
13991400
target_os = "illumos",
14001401
target_os = "netbsd",
@@ -1422,6 +1423,7 @@ impl Socket {
14221423
///
14231424
/// [`set_recv_tos`]: Socket::set_recv_tos
14241425
#[cfg(not(any(
1426+
target_os = "dragonfly",
14251427
target_os = "fuchsia",
14261428
target_os = "illumos",
14271429
target_os = "netbsd",

src/sys/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ pub(crate) use libc::{MSG_TRUNC, SO_OOBINLINE};
7878
#[cfg(all(feature = "all", not(target_os = "redox")))]
7979
pub(crate) use libc::IP_HDRINCL;
8080
#[cfg(not(any(
81+
target_os = "dragonfly",
8182
target_os = "fuchsia",
8283
target_os = "illumos",
8384
target_os = "netbsd",

tests/socket.rs

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

11761176
#[cfg(not(any(
1177+
target_os = "dragonfly",
11771178
target_os = "fuchsia",
11781179
target_os = "illumos",
11791180
target_os = "netbsd",
@@ -1232,6 +1233,7 @@ fn join_leave_multicast_v4_n() {
12321233

12331234
#[test]
12341235
#[cfg(not(any(
1236+
target_os = "dragonfly",
12351237
target_os = "haiku",
12361238
target_os = "netbsd",
12371239
target_os = "redox",

0 commit comments

Comments
 (0)