From 3242730c9e69064217461eaf62f8b020c2a1299a Mon Sep 17 00:00:00 2001 From: Evan Wildenhain Date: Mon, 22 Jul 2024 10:45:25 -0400 Subject: [PATCH] Define SO_BINDTOIFINDEX on Fuchsia Fuchsia supports SO_BINDTOIFINDEX as of API level 20: https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/lib/zxio/socket.cc;l=755;drc=b03121152bf13fb8898a95b58d952c95ee73cd0c (backport ) (cherry picked from commit 09b8a4f0af7d2cb88fe5eafb35449bd43bf84242) --- libc-test/semver/fuchsia.txt | 1 + src/fuchsia/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt index 525b26bd62940..164916ccd554f 100644 --- a/libc-test/semver/fuchsia.txt +++ b/libc-test/semver/fuchsia.txt @@ -951,6 +951,7 @@ SOL_UDP SOL_X25 SOMAXCONN SO_BINDTODEVICE +SO_BINDTOIFINDEX SO_BSDCOMPAT SO_BUSY_POLL SO_DOMAIN diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index e396d37411a02..9414d1674f26e 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -2981,6 +2981,7 @@ pub const SO_MARK: ::c_int = 36; pub const SO_RXQ_OVFL: ::c_int = 40; pub const SO_PEEK_OFF: ::c_int = 42; pub const SO_BUSY_POLL: ::c_int = 46; +pub const SO_BINDTOIFINDEX: ::c_int = 62; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;