From a45063618a1d6723c7f698850318bdd8b65f27a0 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 30 Aug 2001 00:04:19 +0000 Subject: o Remove some GCCisms in src/powerpc/include/endian.h. o Unify 's across all architectures. o Make bswapXX() functions use a different spelling of u_int16_t and friends to reduce namespace pollution. The bswapXX() functions don't actually exist, but we'll probably import these at some point. Atleast one driver (if_de) depends on bswapXX() for big endian cases. o Deprecate byteorder(3) prototypes from , these are now prototyped indirectly in . o Deprecate in_addr_t and in_port_t typedefs in , these are now typedef'd in . o Change byteorder(3) prototypes to use standards compliant uint32_t (spelled __uint32_t to reduce namespace pollution). o Document new preferred headers and standards compliance. Discussed with: bde PR: 29946 Reviewed by: bmilekic --- sys/arm/include/ansi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/arm/include/ansi.h') diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h index 456c8a7..ca6d5f2 100644 --- a/sys/arm/include/ansi.h +++ b/sys/arm/include/ansi.h @@ -49,6 +49,8 @@ */ #define _BSD_CLOCK_T_ int /* clock() */ #define _BSD_CLOCKID_T_ int /* clockid_t */ +#define _BSD_IN_ADDR_T_ __uint32_t /* inet(3) functions */ +#define _BSD_IN_PORT_T_ __uint16_t #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ #define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ #define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */ -- cgit v1.1