diff options
Diffstat (limited to 'other/ssharp/openbsd-compat/fake-getnameinfo.h')
| -rw-r--r-- | other/ssharp/openbsd-compat/fake-getnameinfo.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/other/ssharp/openbsd-compat/fake-getnameinfo.h b/other/ssharp/openbsd-compat/fake-getnameinfo.h new file mode 100644 index 0000000..8177cae --- /dev/null +++ b/other/ssharp/openbsd-compat/fake-getnameinfo.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* $Id: fake-getnameinfo.h,v 1.1.1.1 2001/09/19 14:44:59 stealth Exp $ */ | ||
| 2 | |||
| 3 | #ifndef _FAKE_GETNAMEINFO_H | ||
| 4 | #define _FAKE_GETNAMEINFO_H | ||
| 5 | |||
| 6 | #include "config.h" | ||
| 7 | |||
| 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 */ | ||
