Require OpenSSL 1.1.0 or later.
[tinc] / src / fake-getnameinfo.h
1 #ifndef TINC_FAKE_GETNAMEINFO_H
2 #define TINC_FAKE_GETNAMEINFO_H
3
4 #if !HAVE_DECL_GETNAMEINFO
5 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
6                 size_t hostlen, char *serv, size_t servlen, int flags);
7 #endif /* !HAVE_GETNAMEINFO */
8
9 #ifndef NI_MAXSERV
10 # define NI_MAXSERV 32
11 #endif /* !NI_MAXSERV */
12 #ifndef NI_MAXHOST
13 # define NI_MAXHOST 1025
14 #endif /* !NI_MAXHOST */
15
16 #endif