summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/endian.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-04 03:05:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-04 03:05:38 +0000
commit070270753eb548ade327461eeabe1385897dd253 (patch)
treed6302609fa972f49c304a6c5b4440c178da886d1 /sys/arch/sparc/include/endian.h
parentacb1068371a2e2eb0b7cd006968611ceda63862a (diff)
Define in_addr_t and in_port_t everywhere but use u_intXX_t for
htonl and friends.
Diffstat (limited to 'sys/arch/sparc/include/endian.h')
-rw-r--r--sys/arch/sparc/include/endian.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h
index b7a1556c73b..8a90a04bb50 100644
--- a/sys/arch/sparc/include/endian.h
+++ b/sys/arch/sparc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.3 1996/11/25 13:11:36 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.4 1997/04/04 03:05:35 millert Exp $ */
/* $NetBSD: endian.h,v 1.3 1996/02/13 17:04:58 christos Exp $ */
/*
@@ -54,6 +54,9 @@
#include <sys/cdefs.h>
+typedef u_int32_t in_addr_t;
+typedef u_int16_t in_port_t;
+
__BEGIN_DECLS
u_int32_t htonl __P((u_int32_t));
u_int16_t htons __P((u_int16_t));