aboutsummaryrefslogtreecommitdiff
path: root/core/sys/posix/sys_socket.odin
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2024-09-30 16:00:46 +0200
committerLaytan <laytanlaats@hotmail.com>2024-09-30 16:00:46 +0200
commit5cd1784d4186e2c2f562c815a7929b52b48e69c5 (patch)
treee46bf2ca9068b36c4e40072313c61468fc9725a4 /core/sys/posix/sys_socket.odin
parentc1a67f37e62d5f928f47eb480c33f533d3160041 (diff)
review/correct/cleanup posix linux PR
Diffstat (limited to 'core/sys/posix/sys_socket.odin')
-rw-r--r--core/sys/posix/sys_socket.odin12
1 files changed, 2 insertions, 10 deletions
diff --git a/core/sys/posix/sys_socket.odin b/core/sys/posix/sys_socket.odin
index 185bb7722..e613f0a10 100644
--- a/core/sys/posix/sys_socket.odin
+++ b/core/sys/posix/sys_socket.odin
@@ -323,11 +323,7 @@ when ODIN_OS == .NetBSD {
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .Linux {
- when ODIN_OS == .Linux {
- socklen_t :: distinct c.uint32_t
- } else {
- socklen_t :: distinct c.uint
- }
+ socklen_t :: distinct c.uint
_sa_family_t :: distinct c.uint8_t
@@ -518,11 +514,7 @@ when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS
}
// The maximum backlog queue length for listen().
- when ODIN_OS == .Linux {
- SOMAXCONN :: 4096
- } else {
- SOMAXCONN :: 128
- }
+ SOMAXCONN :: 128
when ODIN_OS == .Linux {
MSG_CTRUNC :: 0x008