diff --git a/sys/sys/endian.h b/sys/sys/endian.h index 79758ef37cbd..c4ae4cb0969b 100644 --- a/sys/sys/endian.h +++ b/sys/sys/endian.h @@ -1,4 +1,4 @@ -/* $NetBSD: endian.h,v 1.4 2001/08/22 07:42:07 itojun Exp $ */ +/* $NetBSD: endian.h,v 1.5 2002/05/12 22:59:50 kleink Exp $ */ /* * Copyright (c) 1987, 1991, 1993 @@ -76,11 +76,19 @@ #ifndef _LOCORE /* C-family endian-ness definitions */ +#include #include #include -typedef u_int32_t in_addr_t; -typedef u_int16_t in_port_t; +#ifndef in_addr_t +typedef __in_addr_t in_addr_t; +#define in_addr_t __in_addr_t +#endif + +#ifndef in_port_t +typedef __in_port_t in_port_t; +#define in_port_t __in_port_t +#endif __BEGIN_DECLS uint32_t htonl __P((uint32_t)) __attribute__((__const__));