summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-09 13:04:24 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-09-15 11:07:16 +0200
commitbab9ed40c689be1c2b3f082babb7e6bd0da662d2 (patch)
tree3d909132f7e1efbf6f7bd7b632be93d85b1ea502 /test/test-runner/src
parente7e41250e6543b3d67e6c86d8194d401790d4905 (diff)
downloadmullvadvpn-bab9ed40c689be1c2b3f082babb7e6bd0da662d2.tar.xz
mullvadvpn-bab9ed40c689be1c2b3f082babb7e6bd0da662d2.zip
Allow test-runner to be built against musl
Diffstat (limited to 'test/test-runner/src')
-rw-r--r--test/test-runner/src/net.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-runner/src/net.rs b/test/test-runner/src/net.rs
index 967d3c8c32..fe100f22c7 100644
--- a/test/test-runner/src/net.rs
+++ b/test/test-runner/src/net.rs
@@ -308,7 +308,7 @@ pub fn get_interface_mtu(interface_name: &str) -> Result<u16, test_rpc::Error> {
// TODO: define SIOCGIFMTU for macos
// SAFETY: SIOCGIFMTU expects an ifreq, and the socket is valid
- if unsafe { libc::ioctl(sock.as_raw_fd(), libc::SIOCGIFMTU, &mut ifr) } < 0 {
+ if unsafe { libc::ioctl(sock.as_raw_fd(), libc::SIOCGIFMTU as libc::Ioctl, &mut ifr) } < 0 {
let e = std::io::Error::last_os_error();
log::error!("{}", e);