From 493d433ac2f2a0e07267d0f569c1da60a3a828a9 Mon Sep 17 00:00:00 2001 From: Cpasjuste Date: Fri, 19 Oct 2018 17:15:24 +0200 Subject: [PATCH] netinet: fix missing declarations (#187) --- nx/external/bsd/include/netinet/in.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nx/external/bsd/include/netinet/in.h b/nx/external/bsd/include/netinet/in.h index 2e66e057..d9209cd2 100644 --- a/nx/external/bsd/include/netinet/in.h +++ b/nx/external/bsd/include/netinet/in.h @@ -45,6 +45,15 @@ #include #include +#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 */