From f0d9b762e204726b6871d2ffb42be8c17819ea70 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sun, 18 Jan 2015 20:29:31 +0000 Subject: [PATCH] Stop including from . Portable software must either include (to operate in legacy mode) or if it wishes to operate in the POSIX world use ok guenther millert doug naddy --- src/include/netdb.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/include/netdb.h b/src/include/netdb.h index a1769222..0f7303e2 100644 --- a/src/include/netdb.h +++ b/src/include/netdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.h,v 1.32 2014/04/28 21:38:59 sperreault Exp $ */ +/* $OpenBSD: netdb.h,v 1.33 2015/01/18 20:29:31 deraadt Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -87,11 +87,6 @@ #ifndef _NETDB_H_ #define _NETDB_H_ -#include - -#if __BSD_VISIBLE -#include -#endif #include #ifndef _SOCKLEN_T_DEFINED_ @@ -181,7 +176,7 @@ extern int h_errno; /* #define NI_NUMERICSCOPE 32 return the scope number, not the name */ #if __BSD_VISIBLE -#define NI_MAXHOST MAXHOSTNAMELEN /* max host name returned by getnameinfo */ +#define NI_MAXHOST 256 /* max host name from getnameinfo (MAXHOSTNAMELEN) */ #define NI_MAXSERV 32 /* max serv. name length returned by getnameinfo */ /*