Skip to content

Commit ed23383

Browse files
superboumThomasdezeeuw
authored andcommitted
allow compilation on haiku beta 4
1 parent 5e2606d commit ed23383

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/socket.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,7 @@ impl Socket {
14421442
target_os = "openbsd",
14431443
target_os = "redox",
14441444
target_os = "solaris",
1445+
target_os = "haiku",
14451446
)))]
14461447
pub fn set_recv_tos(&self, recv_tos: bool) -> io::Result<()> {
14471448
unsafe {
@@ -1467,6 +1468,7 @@ impl Socket {
14671468
target_os = "openbsd",
14681469
target_os = "redox",
14691470
target_os = "solaris",
1471+
target_os = "haiku",
14701472
)))]
14711473
pub fn recv_tos(&self) -> io::Result<bool> {
14721474
unsafe {
@@ -1679,6 +1681,7 @@ impl Socket {
16791681
target_os = "openbsd",
16801682
target_os = "redox",
16811683
target_os = "solaris",
1684+
target_os = "haiku",
16821685
)))]
16831686
pub fn recv_tclass_v6(&self) -> io::Result<bool> {
16841687
unsafe {
@@ -1700,6 +1703,7 @@ impl Socket {
17001703
target_os = "openbsd",
17011704
target_os = "redox",
17021705
target_os = "solaris",
1706+
target_os = "haiku",
17031707
)))]
17041708
pub fn set_recv_tclass_v6(&self, recv_tclass: bool) -> io::Result<()> {
17051709
unsafe {

src/sys/unix.rs

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pub(crate) use libc::{MSG_TRUNC, SO_OOBINLINE};
8484
target_os = "openbsd",
8585
target_os = "redox",
8686
target_os = "solaris",
87+
target_os = "haiku",
8788
)))]
8889
pub(crate) use libc::IPV6_RECVTCLASS;
8990
#[cfg(all(feature = "all", not(target_os = "redox")))]
@@ -96,6 +97,7 @@ pub(crate) use libc::IP_HDRINCL;
9697
target_os = "openbsd",
9798
target_os = "redox",
9899
target_os = "solaris",
100+
target_os = "haiku",
99101
)))]
100102
pub(crate) use libc::IP_RECVTOS;
101103
#[cfg(not(any(

0 commit comments

Comments
 (0)