]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/getnameinfo.h
Prep for 3.5.0.4
[thirdparty/squid.git] / compat / getnameinfo.h
CommitLineData
0e076fb1 1/*
37be9888
AJ
2 * Copyright (C) 1996-2014 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.
0e076fb1 7 */
8
37be9888
AJ
9#ifndef _getnameinfo_h
10#define _getnameinfo_h
11
27bc2077 12#if !HAVE_GETNAMEINFO
0e076fb1 13
37be9888
AJ
14// RFC 2553 / Posix resolver
15// Reconstructed from KAME getnameinfo.c
0e076fb1 16SQUIDCEXTERN int xgetnameinfo(const struct sockaddr *sa,
c5dd4956
AJ
17 socklen_t salen,
18 char *host,
19 size_t hostlen,
20 char *serv,
21 size_t servlen,
22 int flags );
f53969cc 23#define getnameinfo xgetnameinfo
0e076fb1 24
0e076fb1 25#endif /* HAVE_GETNAMEINFO */
27bc2077 26#endif /* _getnameinfo_h */
f53969cc 27