Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 1 | #ifndef _FAKE_GETNAMEINFO_H |
| 2 | #define _FAKE_GETNAMEINFO_H |
| 3 | |
| 4 | #include "config.h" |
Damien Miller | 2f6a0ad | 2000-05-31 11:20:11 +1000 | [diff] [blame] | 5 | |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 6 | #ifndef HAVE_GETNAMEINFO |
| 7 | int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, |
| 8 | size_t hostlen, char *serv, size_t servlen, int flags); |
| 9 | #endif /* !HAVE_GETNAMEINFO */ |
| 10 | |
| 11 | #ifndef NI_MAXSERV |
| 12 | # define NI_MAXSERV 32 |
| 13 | #endif /* !NI_MAXSERV */ |
| 14 | #ifndef NI_MAXHOST |
| 15 | # define NI_MAXHOST 1025 |
| 16 | #endif /* !NI_MAXHOST */ |
| 17 | |
| 18 | #endif /* _FAKE_GETNAMEINFO_H */ |