From 5f7464bb45396808ac1cb5b501c45f9e5c7590f9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 8 May 2005 09:17:37 +0000 Subject: Add in_addr_t, in_port_t. --- cpukit/libnetworking/arpa/inet.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/arpa/inet.h b/cpukit/libnetworking/arpa/inet.h index 9dbed521b9..c4f2372dcc 100644 --- a/cpukit/libnetworking/arpa/inet.h +++ b/cpukit/libnetworking/arpa/inet.h @@ -65,7 +65,15 @@ #include #include -struct in_addr; +#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 #if 0 /* RTEMS -- Why rename these? */ /* XXX all new diversions!! argh!! */ @@ -104,4 +112,4 @@ u_int inet_nsap_addr __P((const char *, u_char *, int)); char *inet_nsap_ntoa __P((int, const u_char *, char *)); __END_DECLS -#endif /* !_INET_H_ */ +#endif /* !_ARPA_INET_H_ */ -- cgit v1.2.3