]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/getnameinfo.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / compat / getnameinfo.h
CommitLineData
0e076fb1 1/*
f70aedc4 2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
37be9888
AJ
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
55d7d5e9 12#if !HAVE_DECL_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
55d7d5e9 25#endif /* HAVE_DECL_GETNAMEINFO */
27bc2077 26#endif /* _getnameinfo_h */
f53969cc 27