]> git.meshlink.io Git - meshlink/blob - src/fake-getnameinfo.h
Fix a debug message being logged incorrectly.
[meshlink] / src / fake-getnameinfo.h
1 #ifndef MESHLINK_FAKE_GETNAMEINFO_H
2 #define MESHLINK_FAKE_GETNAMEINFO_H
3
4 #if !HAVE_DECL_GETNAMEINFO
5 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) __attribute__((__warn_unused_result__));
6 #endif /* !HAVE_GETNAMEINFO */
7
8 #ifndef NI_MAXSERV
9 # define NI_MAXSERV 32
10 #endif /* !NI_MAXSERV */
11 #ifndef NI_MAXHOST
12 # define NI_MAXHOST 1025
13 #endif /* !NI_MAXHOST */
14
15 #endif