Skip to content

Commit

Permalink
Define SO_BINDTOIFINDEX on Fuchsia
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
ewilden authored and tgross35 committed Aug 17, 2024
1 parent 03f6759 commit 3242730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/fuchsia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ SOL_UDP
SOL_X25
SOMAXCONN
SO_BINDTODEVICE
SO_BINDTOIFINDEX
SO_BSDCOMPAT
SO_BUSY_POLL
SO_DOMAIN
Expand Down
1 change: 1 addition & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3242730

Please sign in to comment.