From cbb144e9d9af35c5579c6285aa6ea47b8f0cd1f6 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 18 Jul 1999 23:13:51 +0000 Subject: [PATCH] : include (copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add prototypes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6473 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 0acd4d9c1..652ff1ab6 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -74,6 +74,9 @@ #ifdef HAVE_NETINET6_IN6_H #include #endif +#ifdef HAVE_NETDB_H +#include +#endif #ifdef HAVE_SYSLOG_H #include #endif @@ -394,6 +397,26 @@ extern const char *__progname; extern char **environ; #endif +#ifndef HAVE_GETIPNODEBYNAME +struct hostent * +getipnodebyname (const char *name, int af, int flags, int *error_num); +#endif + +#ifndef HAVE_GETIPNODEBYADDR +struct hostent * +getipnodebyaddr (const void *src, size_t len, int af, int *error_num); +#endif + +#ifndef HAVE_FREEHOSTENT +void +freehostent (struct hostent *h); +#endif + +#ifndef HAVE_COPYHOSTENT +struct hostent * +copyhostent (const struct hostent *h); +#endif + /* * kludges and such */