1 /* $Id: fake-getnameinfo.h,v 1.1.2.1 2002/07/12 11:45:21 guus Exp $ */
3 #ifndef _FAKE_GETNAMEINFO_H
4 #define _FAKE_GETNAMEINFO_H
8 #include <sys/socket.h>
11 #ifndef HAVE_GETNAMEINFO
12 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
13 size_t hostlen, char *serv, size_t servlen, int flags);
14 #endif /* !HAVE_GETNAMEINFO */
17 # define NI_MAXSERV 32
18 #endif /* !NI_MAXSERV */
20 # define NI_MAXHOST 1025
21 #endif /* !NI_MAXHOST */
23 #endif /* _FAKE_GETNAMEINFO_H */