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

This commit is contained in:
kleink 2002-05-12 22:59:50 +00:00
parent d05cce938c
commit cc7147e7f6
1 changed files with 11 additions and 3 deletions

View File

@ -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__));