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
This commit is contained in:
parent
43295941c4
commit
c3ab2e6bc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82626
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user