From e837fb0fb93591ed813080a2b5285ab71adbf41c Mon Sep 17 00:00:00 2001 From: Nicola Krumschmidt Date: Mon, 9 Sep 2024 20:10:38 +0200 Subject: [PATCH] Add SO_BROADCAST and SO_LINGER to the list of defined constants --- expected/wasm32-wasip2/predefined-macros.txt | 2 ++ libc-bottom-half/headers/public/__header_sys_socket.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/expected/wasm32-wasip2/predefined-macros.txt b/expected/wasm32-wasip2/predefined-macros.txt index ea346a9d..421e6dd8 100644 --- a/expected/wasm32-wasip2/predefined-macros.txt +++ b/expected/wasm32-wasip2/predefined-macros.txt @@ -1776,9 +1776,11 @@ #define SOL_UDP 17 #define SOMAXCONN 128 #define SO_ACCEPTCONN 30 +#define SO_BROADCAST 6 #define SO_DOMAIN 39 #define SO_ERROR 4 #define SO_KEEPALIVE 9 +#define SO_LINGER 13 #define SO_PROTOCOL 38 #define SO_RCVBUF 8 #define SO_RCVTIMEO 66 diff --git a/libc-bottom-half/headers/public/__header_sys_socket.h b/libc-bottom-half/headers/public/__header_sys_socket.h index fa98ccac..9498d4a3 100644 --- a/libc-bottom-half/headers/public/__header_sys_socket.h +++ b/libc-bottom-half/headers/public/__header_sys_socket.h @@ -28,9 +28,11 @@ #define SO_REUSEADDR 2 #define SO_ERROR 4 +#define SO_BROADCAST 6 #define SO_SNDBUF 7 #define SO_RCVBUF 8 #define SO_KEEPALIVE 9 +#define SO_LINGER 13 #define SO_ACCEPTCONN 30 #define SO_PROTOCOL 38 #define SO_DOMAIN 39