summaryrefslogtreecommitdiff
path: root/openbsd-compat/fake-getnameinfo.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-23 17:49:41 +0000
committerColin Watson <cjwatson@debian.org>2003-09-23 17:49:41 +0000
commit45431c9b4677608680cd071768cbf156b316a7e8 (patch)
tree9dd03d2cda2d52d8457ec7ae06902fbe0496e1e0 /openbsd-compat/fake-getnameinfo.h
parent6dbe10d82295512af03b81649c26841381318996 (diff)
parent9221adce6959801664fd4a340c19e6b69107ad0b (diff)
Import OpenSSH 3.7.1p2.
Diffstat (limited to 'openbsd-compat/fake-getnameinfo.h')
-rw-r--r--openbsd-compat/fake-getnameinfo.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/openbsd-compat/fake-getnameinfo.h b/openbsd-compat/fake-getnameinfo.h
new file mode 100644
index 000000000..c9b7908aa
--- /dev/null
+++ b/openbsd-compat/fake-getnameinfo.h
@@ -0,0 +1,20 @@
1/* $Id: fake-getnameinfo.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2
3#ifndef _FAKE_GETNAMEINFO_H
4#define _FAKE_GETNAMEINFO_H
5
6#include "config.h"
7
8#ifndef HAVE_GETNAMEINFO
9int 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 */