Skip to content

Commit 31cad4e

Browse files
committed
Add SOMAXCONN constants to vita and espidf
1 parent 1abc2e4 commit 31cad4e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/newlib/espidf/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ s! {
6262
pub const AF_UNIX: ::c_int = 1;
6363
pub const AF_INET6: ::c_int = 10;
6464

65+
pub const SOMAXCONN: ::c_int = 128;
66+
6567
pub const FIONBIO: ::c_ulong = 2147772030;
6668

6769
pub const POLLIN: ::c_short = 1 << 0;

src/unix/newlib/vita/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ pub const SOCK_RAW: ::c_int = 3;
9494
pub const SOCK_RDM: ::c_int = 4;
9595
pub const SOCK_SEQPACKET: ::c_int = 5;
9696

97+
pub const SOMAXCONN: ::c_int = 128;
98+
9799
pub const FIONBIO: ::c_ulong = 1;
98100

99101
pub const POLLIN: ::c_short = 0x0001;

0 commit comments

Comments
 (0)