From e809d27f8fff0acb5a12afd74bc6ba9a6a123796 Mon Sep 17 00:00:00 2001 From: Josh Guilfoyle Date: Mon, 31 Jul 2023 10:36:18 -0700 Subject: [PATCH] Small fix for ESP-IDF platform support This was missed in #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 #379. --- src/sys/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/unix.rs b/src/sys/unix.rs index 788d9fdb..639d26e7 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -130,7 +130,7 @@ pub(crate) use libc::ipv6_mreq as Ipv6Mreq; target_os = "espidf", )))] pub(crate) use libc::IPV6_RECVTCLASS; -#[cfg(all(feature = "all", not(target_os = "redox")))] +#[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] pub(crate) use libc::IP_HDRINCL; #[cfg(not(any( target_os = "aix",