Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Use <sys/ansi.h> definitions for in_{addr, port}_t.



details:   https://anonhg.NetBSD.org/src/rev/3b1f8d28730a
branches:  trunk
changeset: 526857:3b1f8d28730a
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sun May 12 22:59:50 2002 +0000

description:
Use <sys/ansi.h> definitions for in_{addr,port}_t.

diffstat:

 sys/sys/endian.h |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 7e6211322258 -r 3b1f8d28730a sys/sys/endian.h
--- a/sys/sys/endian.h  Sun May 12 22:58:48 2002 +0000
+++ b/sys/sys/endian.h  Sun May 12 22:59:50 2002 +0000
@@ -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 <sys/ansi.h>
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
-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__));



Home | Main Index | Thread Index | Old Index