aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2001-08-30 00:04:19 +0000
committerMike Barcroft <mike@FreeBSD.org>2001-08-30 00:04:19 +0000
commit03516cfeb01dd63a72e120acc0ad027bd5bde63a (patch)
tree2a398220f9e238744c0dfb240b714a2129e1c526 /sys/arm
parente7e2b8018452c041381375b0236a226c8ccb352a (diff)
downloadsrc-03516cfeb01dd63a72e120acc0ad027bd5bde63a.tar.gz
src-03516cfeb01dd63a72e120acc0ad027bd5bde63a.zip
o Remove some GCCisms in src/powerpc/include/endian.h.
o Unify <machine/endian.h>'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 <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>. 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
Notes
Notes: svn path=/head/; revision=82530
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/ansi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h
index 456c8a7b6676..ca6d5f2f588e 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) */