From 816a236462f9d4031a63e890b0e046e2ce1c1af4 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 11 Dec 2024 21:11:47 +0000 Subject: [PATCH] Add sockaddr_vm definition for Fuchsia --- libc-test/semver/fuchsia.txt | 1 + src/fuchsia/mod.rs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt index f7bca9ab2e9cb..12f67d8b4c606 100644 --- a/libc-test/semver/fuchsia.txt +++ b/libc-test/semver/fuchsia.txt @@ -1446,6 +1446,7 @@ sigwait sigwaitinfo sockaddr_ll sockaddr_nl +sockaddr_vm splice spwd srand diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 7bd8078e43a9d..f9a7ed929eaaf 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -357,6 +357,14 @@ s! { pub sin6_scope_id: u32, } + pub struct sockaddr_vm { + pub svm_family: sa_family_t, + pub svm_reserved1: c_ushort, + pub svm_port: crate::in_port_t, + pub svm_cid: c_uint, + pub svm_zero: [u8; 4], + } + pub struct addrinfo { pub ai_flags: c_int, pub ai_family: c_int,