Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: add esp-idf compilation feature
  • Loading branch information
pulsastrix committed Jun 13, 2024
1 parent 5883693 commit 2862e6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libcoap-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
#![allow(deref_nullptr)]
#![allow(non_snake_case)]

#[cfg(not(feature = "esp"))]
use libc::{epoll_event, fd_set, sockaddr, sockaddr_in, sockaddr_in6, socklen_t, time_t, sa_family_t};

// use dtls backend libraries in cases where they set our linker flags, otherwise cargo will
Expand All @@ -97,12 +98,12 @@ use openssl_sys as _;
#[cfg(feature = "dtls_backend_tinydtls")]
use tinydtls_sys as _;

#[cfg(target_family = "windows")]
#[cfg(all(target_family = "windows", not(feature = "esp")))]
include!(concat!(env!("OUT_DIR"), "\\bindings.rs"));
#[cfg(not(target_family = "windows"))]
#[cfg(all(not(target_family = "windows"), not(feature = "esp")))]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[cfg(test)]
#[cfg(all(test, not(feature = "esp")))]
mod tests {
use std::{
ffi::c_void,
Expand Down

0 comments on commit 2862e6a

Please sign in to comment.