35b1c25093
The utility functions in the lib/ directory do not really form a library. Also, now that we build two binaries, tincctl does not need everything that was in libvpn.a, so it is wasteful to link to it.
16 lines
428 B
C
16 lines
428 B
C
#ifndef _FAKE_GETNAMEINFO_H
|
|
#define _FAKE_GETNAMEINFO_H
|
|
|
|
#if !HAVE_DECL_GETNAMEINFO
|
|
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
|
|
size_t hostlen, char *serv, size_t servlen, int flags);
|
|
#endif /* !HAVE_GETNAMEINFO */
|
|
|
|
#ifndef NI_MAXSERV
|
|
# define NI_MAXSERV 32
|
|
#endif /* !NI_MAXSERV */
|
|
#ifndef NI_MAXHOST
|
|
# define NI_MAXHOST 1025
|
|
#endif /* !NI_MAXHOST */
|
|
|
|
#endif /* _FAKE_GETNAMEINFO_H */
|