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 <[email protected]>
> ---
>  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

Reply via email to