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