Skip to content

Commit 5c8bf8c

Browse files
BegasusThomasdezeeuw
authored andcommitted
Haiku fixes for IP_RECVTOS and IP_TOS
1 parent 328dac6 commit 5c8bf8c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,7 @@ impl Socket {
14871487
target_os = "redox",
14881488
target_os = "solaris",
14891489
target_os = "illumos",
1490+
target_os = "haiku",
14901491
)))]
14911492
pub fn set_tos(&self, tos: u32) -> io::Result<()> {
14921493
unsafe { setsockopt(self.as_raw(), sys::IPPROTO_IP, sys::IP_TOS, tos as c_int) }
@@ -1505,6 +1506,7 @@ impl Socket {
15051506
target_os = "redox",
15061507
target_os = "solaris",
15071508
target_os = "illumos",
1509+
target_os = "haiku",
15081510
)))]
15091511
pub fn tos(&self) -> io::Result<u32> {
15101512
unsafe {

src/sys/unix.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pub(crate) use libc::IP_RECVTOS;
152152
target_os = "fuchsia",
153153
target_os = "redox",
154154
target_os = "solaris",
155+
target_os = "haiku",
155156
target_os = "illumos",
156157
)))]
157158
pub(crate) use libc::IP_TOS;

0 commit comments

Comments
 (0)