Gnulib module: sys_socket
Portability problems fixed by Gnulib:
<sys/types.h>to be included first.
socklen_ton some platforms: HP-UX 10.20, IRIX 6.5, OSF/1 4.0, Interix 3.5, BeOS.
struct iovecon some platforms: OpenBSD 4.4.
SHUT_RDWRmacros on some platforms, despite having the
struct sockaddr_storagetype does not have a member
ss_familyon some platforms: AIX 7.1.
CMSG_LENmacros are not provided on some platforms: OpenVMS.
SO_REUSEPORTmacro on some platforms: Minix 3.1.8, Solaris 10, Cygwin, mingw, MSVC 14.
Portability problems not fixed by Gnulib:
struct msghdron some platforms. This can be detected by the absence of the
CMSG_FIRSTHDRmacro: gnulib replacement header, old BSD