netinet: fix missing declarations (?)

This commit is contained in:
Cpasjuste 2018-10-19 12:54:50 +02:00
parent 319cc578ca
commit 45e4b7cceb

View File

@ -72,6 +72,15 @@ typedef __socklen_t socklen_t;
#define _SOCKLEN_T_DECLARED
#endif
#ifndef _IN_ADDR_T_DECLARED
typedef __uint32_t in_addr_t;
#define _IN_ADDR_T_DECLARED
#endif
#ifndef _IN_PORT_T_DECLARED
typedef __uint16_t in_port_t;
#define _IN_PORT_T_DECLARED
#endif
#include <sys/_sockaddr_storage.h>
/* Socket address, internet style. */