Skip to content

Commit 4fcd45a

Browse files
committed
Add missing SO_ constants for android
1 parent ab78851 commit 4fcd45a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,16 +486,26 @@ pub const SO_SNDBUF: ::c_int = 7;
486486
pub const SO_RCVBUF: ::c_int = 8;
487487
pub const SO_KEEPALIVE: ::c_int = 9;
488488
pub const SO_OOBINLINE: ::c_int = 10;
489+
pub const SO_PRIORITY: ::c_int = 12;
489490
pub const SO_LINGER: ::c_int = 13;
491+
pub const SO_BSDCOMPAT: ::c_int = 14;
490492
pub const SO_REUSEPORT: ::c_int = 15;
491493
pub const SO_PASSCRED: ::c_int = 16;
492494
pub const SO_PEERCRED: ::c_int = 17;
493495
pub const SO_RCVLOWAT: ::c_int = 18;
494496
pub const SO_SNDLOWAT: ::c_int = 19;
495497
pub const SO_RCVTIMEO: ::c_int = 20;
496498
pub const SO_SNDTIMEO: ::c_int = 21;
499+
pub const SO_BINDTODEVICE: ::c_int = 25;
500+
pub const SO_TIMESTAMP: ::c_int = 29;
497501
pub const SO_ACCEPTCONN: ::c_int = 30;
498502
pub const SO_SNDBUFFORCE: ::c_int = 32;
503+
pub const SO_MARK: ::c_int = 36;
504+
pub const SO_PROTOCOL: ::c_int = 38;
505+
pub const SO_DOMAIN: ::c_int = 39;
506+
pub const SO_RXQ_OVFL: ::c_int = 40;
507+
pub const SO_PEEK_OFF: ::c_int = 42;
508+
pub const SO_BUSY_POLL: ::c_int = 46;
499509

500510
pub const O_ACCMODE: ::c_int = 3;
501511
pub const O_APPEND: ::c_int = 1024;

0 commit comments

Comments
 (0)