]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/getnameinfo.h
SourceFormat Enforcement
[thirdparty/squid.git] / compat / getnameinfo.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef _getnameinfo_h
10 #define _getnameinfo_h
11
12 #if !HAVE_DECL_GETNAMEINFO
13
14 // RFC 2553 / Posix resolver
15 // Reconstructed from KAME getnameinfo.c
16 SQUIDCEXTERN int xgetnameinfo(const struct sockaddr *sa,
17 socklen_t salen,
18 char *host,
19 size_t hostlen,
20 char *serv,
21 size_t servlen,
22 int flags );
23 #define getnameinfo xgetnameinfo
24
25 #endif /* HAVE_DECL_GETNAMEINFO */
26 #endif /* _getnameinfo_h */
27