netinet: fix missing declarations (#187)

This commit is contained in:
Cpasjuste 2018-10-19 17:15:24 +02:00 committed by fincs
parent 319cc578ca
commit 493d433ac2

View File

@ -45,6 +45,15 @@
#include <sys/types.h>
#include <machine/endian.h>
#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
/* Protocols common to RFC 1700, POSIX, and X/Open. */
#define IPPROTO_IP 0 /* dummy for IP */
#define IPPROTO_ICMP 1 /* control message protocol */