summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2001-02-15 10:35:55 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2001-02-15 10:35:55 +0000
commitad9fdc8f4d7f2592a55039a59c6201c056dc4ead (patch)
tree36f4e11c08a7c691df35079099f5c81f1c0dd81c /include/netdb.h
parent97424e48a0b008679b771c87d7b2024a26f1c92e (diff)
Notes
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 4f3417383dd2..03b4f3ee4061 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -61,8 +61,13 @@
#ifndef _NETDB_H_
#define _NETDB_H_
+#include <machine/ansi.h>
#include <sys/cdefs.h>
-#include <sys/types.h>
+
+#ifdef _BSD_SIZE_T_
+typedef _BSD_SIZE_T_ size_t;
+#undef _BSD_SIZE_T_
+#endif
#ifndef _PATH_HEQUIV
# define _PATH_HEQUIV "/etc/hosts.equiv"
@@ -192,6 +197,14 @@ struct addrinfo {
*/
#define SCOPE_DELIMITER '%'
+/*
+ * data types - basically forward decl for getnameinfo()
+ */
+#ifdef _BSD_SOCKLEN_T_
+typedef _BSD_SOCKLEN_T_ socklen_t;
+#undef _BSD_SOCKLEN_T_
+#endif
+
__BEGIN_DECLS
void endhostent __P((void));
void endnetent __P((void));
@@ -221,7 +234,7 @@ void setnetent __P((int));
void setprotoent __P((int));
int getaddrinfo __P((const char *, const char *,
const struct addrinfo *, struct addrinfo **));
-int getnameinfo __P((const struct sockaddr *, size_t, char *,
+int getnameinfo __P((const struct sockaddr *, socklen_t, char *,
size_t, char *, size_t, int));
void freeaddrinfo __P((struct addrinfo *));
char *gai_strerror __P((int));