summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-03-24 15:17:27 +0000
committerume <ume@FreeBSD.org>2001-03-24 15:17:27 +0000
commitd26371de82eb34597fabf963c9c520a801cd90fd (patch)
tree80cb54dd92eb99dde34a2d1ff6cc86ec6fec192c
parent465f853f3d02f6ec0cfbc4dd784d62fc44fa1437 (diff)
downloadFreeBSD-src-d26371de82eb34597fabf963c9c520a801cd90fd.zip
FreeBSD-src-d26371de82eb34597fabf963c9c520a801cd90fd.tar.gz
Unbreak build on alpha.
- Move in_port_t to sys/types.h. - Nuke in_addr_t from each endian.h. Reported by: jhb
-rw-r--r--sys/alpha/include/endian.h3
-rw-r--r--sys/ia64/include/endian.h3
-rw-r--r--sys/powerpc/include/endian.h3
-rw-r--r--sys/sys/types.h1
4 files changed, 1 insertions, 9 deletions
diff --git a/sys/alpha/include/endian.h b/sys/alpha/include/endian.h
index 67e4540..068f2f4 100644
--- a/sys/alpha/include/endian.h
+++ b/sys/alpha/include/endian.h
@@ -59,9 +59,6 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-typedef u_int32_t in_addr_t;
-typedef u_int16_t in_port_t;
-
__BEGIN_DECLS
in_addr_t htonl __P((in_addr_t));
in_port_t htons __P((in_port_t));
diff --git a/sys/ia64/include/endian.h b/sys/ia64/include/endian.h
index 67e4540..068f2f4 100644
--- a/sys/ia64/include/endian.h
+++ b/sys/ia64/include/endian.h
@@ -59,9 +59,6 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-typedef u_int32_t in_addr_t;
-typedef u_int16_t in_port_t;
-
__BEGIN_DECLS
in_addr_t htonl __P((in_addr_t));
in_port_t htons __P((in_port_t));
diff --git a/sys/powerpc/include/endian.h b/sys/powerpc/include/endian.h
index 97c1bcb..da4f7ef 100644
--- a/sys/powerpc/include/endian.h
+++ b/sys/powerpc/include/endian.h
@@ -58,9 +58,6 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-typedef u_int32_t in_addr_t;
-typedef u_int16_t in_port_t;
-
__BEGIN_DECLS
in_addr_t htonl __P((in_addr_t)) __attribute__((__const__));
in_port_t htons __P((in_port_t)) __attribute__((__const__));
diff --git a/sys/sys/types.h b/sys/sys/types.h
index baae9a3..aefe63c 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -74,6 +74,7 @@ typedef u_int32_t u_daddr_t; /* unsigned disk address */
typedef u_int32_t fixpt_t; /* fixed point number */
typedef u_int32_t gid_t; /* group id */
typedef u_int32_t in_addr_t; /* base type for internet address */
+typedef u_int16_t in_port_t;
typedef u_int32_t ino_t; /* inode number */
typedef long key_t; /* IPC key (for Sys V IPC) */
typedef u_int16_t mode_t; /* permissions */
OpenPOWER on IntegriCloud