fa9bedd47c
This allows us to use getaddrinfo(), getnameinfo() and related functions, which allow tinc to make connections over existing IPv6 networks. These functions are not available on Windows 2000 however. By default, support is enabled, but when compiling for Windows 2000 the configure switch --with-windows2000 should be used. Since getaddrinfo() et al. are not functions but macros on Windows, we have to use AC_CHECK_DECLS() instead of AC_CHECK_FUNCS() in configure.in.
18 lines
440 B
C
18 lines
440 B
C
/* $Id$ */
|
|
|
|
#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 */
|