[PATCH] Cygwin: winsup/cygwin/include/asm/socket.h: add SO_REUSEPORT
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jun 23 08:42:21 GMT 2025
Hi Brian,
On Jun 21 11:02, Brian Inglis wrote:
> SO_REUSEPORT is defined in BSDs, Solaris, and Linux (since 3.9).
> It is not available in Windows but S.O. articles suggest
S.O.?
-v, please?
If there's this articel, it might be a good idea to add a link to it
in the commit message.
Thanks,
Corinna
> SO_REUSEADDR|SO_BROADCAST works similarly on Windows, so define as such.
> Required to build nghttp2 1.66.
>
> Signed-off-by: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
> ---
> winsup/cygwin/include/asm/socket.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/winsup/cygwin/include/asm/socket.h b/winsup/cygwin/include/asm/socket.h
> index 276df3a0b5fd..d65dc41a0d5d 100644
> --- a/winsup/cygwin/include/asm/socket.h
> +++ b/winsup/cygwin/include/asm/socket.h
> @@ -72,5 +72,8 @@ details. */
> #define SO_ERROR 0x1007 /* get error status and clear */
> #define SO_TYPE 0x1008 /* get socket type */
>
> +#define SO_REUSEPORT (SO_REUSEADDR | SO_BROADCAST)
> + /* allow local port reuse - synth on Windows */
> +
> #endif /* _ASM_SOCKET_H */
>
> --
> 2.45.1
More information about the Cygwin-patches
mailing list