summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-18 20:29:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-18 20:29:32 +0000
commita7d35230cb0dee8891527bffb0dc2892548dc96a (patch)
tree6aa3dd67aed4cdd9c0f057bb444d91aa9b1a834f /include/netdb.h
parent47f085f09555a1761e0050f1dc0e09fac681414e (diff)
Stop including <sys/param.h> from <netdb.h>. Portable software must either
include <sys/param.h> (to operate in legacy mode) or if it wishes to operate in the POSIX world use <limits.h> ok guenther millert doug naddy
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/netdb.h b/include/netdb.h
index a1769222efc..0f7303e22fb 100644
--- a/include/netdb.h
+++ b/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 <sys/cdefs.h>
-
-#if __BSD_VISIBLE
-#include <sys/param.h>
-#endif
#include <netinet/in.h>
#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 */
/*