Skip to content

Commit e809d27

Browse files
committed
Small fix for ESP-IDF platform support
This was missed in rust-lang#452 because I wasn't testing with feature="all" enabled for my small socket2 test. For the full tokio integration I was using v0.4.x which didn't need this fix. Properly closes rust-lang#379.
1 parent baa8f2b commit e809d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub(crate) use libc::ipv6_mreq as Ipv6Mreq;
130130
target_os = "espidf",
131131
)))]
132132
pub(crate) use libc::IPV6_RECVTCLASS;
133-
#[cfg(all(feature = "all", not(target_os = "redox")))]
133+
#[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))]
134134
pub(crate) use libc::IP_HDRINCL;
135135
#[cfg(not(any(
136136
target_os = "aix",

0 commit comments

Comments
 (0)