summaryrefslogtreecommitdiff
path: root/openbsd-compat/fake-getnameinfo.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-31 21:52:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-31 21:52:01 +0000
commit3c06f6a0b234822c7b2d6c63ef1aaf554af7167b (patch)
tree86e5fe626cb9cbade752baf2440badfa19976200 /openbsd-compat/fake-getnameinfo.h
parentbf75776d415126a415ac92fb767c70dc67feba4f (diff)
- (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff to
openbsd-compat/. And resolve all ./configure and Makefile.in issues assocated. Logic: * All OpenBSD functions should have the same filename as in the OpenBSD tree * All 'home brew' functions have bsd-* infront of them. * All 'not really implemented' functions have fake-* infront of them.
Diffstat (limited to 'openbsd-compat/fake-getnameinfo.h')
-rw-r--r--openbsd-compat/fake-getnameinfo.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/openbsd-compat/fake-getnameinfo.h b/openbsd-compat/fake-getnameinfo.h
new file mode 100644
index 000000000..0d25f4270
--- /dev/null
+++ b/openbsd-compat/fake-getnameinfo.h
@@ -0,0 +1,18 @@
1#ifndef _FAKE_GETNAMEINFO_H
2#define _FAKE_GETNAMEINFO_H
3
4#include "config.h"
5
6#ifndef HAVE_GETNAMEINFO
7int 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 */