<netdb.h>: include
(copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add prototypes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6473 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -74,6 +74,9 @@
|
|||||||
#ifdef HAVE_NETINET6_IN6_H
|
#ifdef HAVE_NETINET6_IN6_H
|
||||||
#include <netinet6/in6.h>
|
#include <netinet6/in6.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_NETDB_H
|
||||||
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_SYSLOG_H
|
#ifdef HAVE_SYSLOG_H
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -394,6 +397,26 @@ extern const char *__progname;
|
|||||||
extern char **environ;
|
extern char **environ;
|
||||||
#endif
|
#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
|
* kludges and such
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user