From d26371de82eb34597fabf963c9c520a801cd90fd Mon Sep 17 00:00:00 2001 From: ume Date: Sat, 24 Mar 2001 15:17:27 +0000 Subject: Unbreak build on alpha. - Move in_port_t to sys/types.h. - Nuke in_addr_t from each endian.h. Reported by: jhb --- sys/alpha/include/endian.h | 3 --- sys/ia64/include/endian.h | 3 --- sys/powerpc/include/endian.h | 3 --- sys/sys/types.h | 1 + 4 files changed, 1 insertion(+), 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 #include -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 #include -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 #include -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 */ -- cgit v1.1