Skip to content

Commit

Permalink
conditional compile test_socket only on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeS17 committed Apr 5, 2024
1 parent baae29c commit ce4e982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/pass-dep/shims/libc-socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#[path = "../../utils/mod.rs"]
mod utils;

#[cfg(target_os = "linux")]
fn test_socket(
socket: unsafe extern "C" fn(
domain: libc::c_int,
Expand Down

0 comments on commit ce4e982

Please sign in to comment.