Skip to content

Commit 3242730

Browse files
ewildentgross35
authored andcommitted
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 <#3784>) (cherry picked from commit 09b8a4f)
1 parent 03f6759 commit 3242730

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/fuchsia.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ SOL_UDP
951951
SOL_X25
952952
SOMAXCONN
953953
SO_BINDTODEVICE
954+
SO_BINDTOIFINDEX
954955
SO_BSDCOMPAT
955956
SO_BUSY_POLL
956957
SO_DOMAIN

src/fuchsia/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,7 @@ pub const SO_MARK: ::c_int = 36;
29812981
pub const SO_RXQ_OVFL: ::c_int = 40;
29822982
pub const SO_PEEK_OFF: ::c_int = 42;
29832983
pub const SO_BUSY_POLL: ::c_int = 46;
2984+
pub const SO_BINDTOIFINDEX: ::c_int = 62;
29842985

29852986
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
29862987
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;

0 commit comments

Comments
 (0)