From 2b63684ccfd45882fd4f37c054d2ca7437c39c66 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Mon, 5 Aug 2024 02:07:15 -0400 Subject: [PATCH] Fix integer socket option values for FreeBSD --- core/net/socket_freebsd.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/net/socket_freebsd.odin b/core/net/socket_freebsd.odin index 579ea90f2..10bc4c63e 100644 --- a/core/net/socket_freebsd.odin +++ b/core/net/socket_freebsd.odin @@ -304,6 +304,8 @@ _set_option :: proc(socket: Any_Socket, option: Socket_Option, value: any, loc : case: panic("set_option() value must be an integer here", loc) } + ptr = &int_value + len = size_of(int_value) case: unimplemented("set_option() option not yet implemented", loc) }