File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/unix/linux_like/linux/arch/generic Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2895,6 +2895,7 @@ SOL_X25
28952895SOMAXCONN
28962896SO_BINDTODEVICE
28972897SO_BUSY_POLL
2898+ SO_BUSY_POLL_BUDGET
28982899SO_DOMAIN
28992900SO_EE_OFFENDER
29002901SO_EE_ORIGIN_ICMP
@@ -2914,6 +2915,7 @@ SO_PASSSEC
29142915SO_PEEK_OFF
29152916SO_PEERCRED
29162917SO_PEERSEC
2918+ SO_PREFER_BUSY_POLL
29172919SO_RCVBUFFORCE
29182920SO_REUSEPORT
29192921SO_RXQ_OVFL
Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ cfg_if! {
102102 target_arch = "csky" ,
103103 target_arch = "loongarch64"
104104 ) ,
105+ // FIXME(musl):
106+ // Musl hardcodes the SO_* constants instead
107+ // of inheriting them from the kernel headers.
108+ // For new constants you might need consider updating
109+ // musl in the CI as well.
105110 not( any( target_env = "musl" , target_env = "ohos" ) )
106111 ) ) ] {
107112 pub const SO_TIMESTAMP_NEW : c_int = 63 ;
@@ -112,8 +117,8 @@ cfg_if! {
112117 pub const SO_DETACH_REUSEPORT_BPF : c_int = 68 ;
113118 }
114119}
115- // pub const SO_PREFER_BUSY_POLL: c_int = 69;
116- // pub const SO_BUSY_POLL_BUDGET: c_int = 70;
120+ pub const SO_PREFER_BUSY_POLL : c_int = 69 ;
121+ pub const SO_BUSY_POLL_BUDGET : c_int = 70 ;
117122
118123cfg_if ! {
119124 if #[ cfg( any(
You can’t perform that action at this time.
0 commit comments