Skip to content

Commit

Permalink
Import c_void properly for Windows/non-Windows (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse committed Apr 29, 2024
1 parent 1780aec commit 384ae2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quiche/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,10 @@ fn std_time_to_c(_time: &std::time::Instant, out: &mut timespec) {
mod tests {
use super::*;

#[cfg(not(windows))]
use libc::c_void;
#[cfg(windows)]
use winapi::ctypes::c_void;
#[cfg(windows)]
use winapi::um::ws2tcpip::inet_ntop;

Expand Down

0 comments on commit 384ae2e

Please sign in to comment.