diff options
author | mike <mike@FreeBSD.org> | 2001-08-31 03:12:01 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-08-31 03:12:01 +0000 |
commit | 09d5d58bc5ec6c3ec476c7cb5a2b9f4067c0837c (patch) | |
tree | a5dc70938ee869a1b4eea87014af698baea25edb /include/arpa | |
parent | 38184ffdbda30fbf7863bc2b5633249a4d49732c (diff) | |
download | FreeBSD-src-09d5d58bc5ec6c3ec476c7cb5a2b9f4067c0837c.zip FreeBSD-src-09d5d58bc5ec6c3ec476c7cb5a2b9f4067c0837c.tar.gz |
o Deprecate byteorder(3) prototypes from <sys/types.h>, these are
now prototyped indirectly in <arpa/inet.h>.
o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these
are now typedef'd in <arpa/inet.h>.
Discussed with: bde
PR: 29946
Diffstat (limited to 'include/arpa')
-rw-r--r-- | include/arpa/inet.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index fe60747..267c7f1 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -60,11 +60,26 @@ /* External definitions for functions in inet(3), addr2ascii(3) */ -#include <sys/types.h> #include <sys/cdefs.h> +#include <machine/endian.h> struct in_addr; +#ifdef _BSD_IN_ADDR_T_ +typedef _BSD_IN_ADDR_T_ in_addr_t; +#undef _BSD_IN_ADDR_T_ +#endif + +#ifdef _BSD_IN_PORT_T_ +typedef _BSD_IN_PORT_T_ in_port_t; +#undef _BSD_IN_ADDR_T_ +#endif + +#ifdef _BSD_SIZE_T_ +typedef _BSD_SIZE_T_ size_t; +#undef _BSD_SIZE_T_ +#endif + /* XXX all new diversions!! argh!! */ #define inet_addr __inet_addr #define inet_aton __inet_aton |