Skip to content

Commit

Permalink
Add SOMAXCONN constants to vita and espidf
Browse files Browse the repository at this point in the history
  • Loading branch information
pheki committed Jan 11, 2024
1 parent 1abc2e4 commit 31cad4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/newlib/espidf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ s! {
pub const AF_UNIX: ::c_int = 1;
pub const AF_INET6: ::c_int = 10;

pub const SOMAXCONN: ::c_int = 128;

pub const FIONBIO: ::c_ulong = 2147772030;

pub const POLLIN: ::c_short = 1 << 0;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/newlib/vita/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ pub const SOCK_RAW: ::c_int = 3;
pub const SOCK_RDM: ::c_int = 4;
pub const SOCK_SEQPACKET: ::c_int = 5;

pub const SOMAXCONN: ::c_int = 128;

pub const FIONBIO: ::c_ulong = 1;

pub const POLLIN: ::c_short = 0x0001;
Expand Down

0 comments on commit 31cad4e

Please sign in to comment.