diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-05-08 09:17:37 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-05-08 09:17:37 +0000 |
commit | 5f7464bb45396808ac1cb5b501c45f9e5c7590f9 (patch) | |
tree | 56cad893b4cecc202a41847dc7a88deb7ebd6da3 /cpukit/libnetworking/arpa | |
parent | Partial update from FreeBSD. (diff) | |
download | rtems-5f7464bb45396808ac1cb5b501c45f9e5c7590f9.tar.bz2 |
Add in_addr_t, in_port_t.
Diffstat (limited to 'cpukit/libnetworking/arpa')
-rw-r--r-- | cpukit/libnetworking/arpa/inet.h | 12 |
1 files changed, 10 insertions, 2 deletions
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 <sys/types.h> #include <sys/cdefs.h> -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_ */ |