Go to the documentation of this file. 1 #ifndef HEADER_CARES_SETUP_H
2 #define HEADER_CARES_SETUP_H
22 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
32 #include "ares_config.h"
55 #ifdef NEED_THREAD_SAFE
107 #ifdef HAVE_WINDOWS_H
108 # ifndef WIN32_LEAN_AND_MEAN
109 # define WIN32_LEAN_AND_MEAN
111 # include <windows.h>
112 # ifdef HAVE_WINSOCK2_H
113 # include <winsock2.h>
114 # ifdef HAVE_WS2TCPIP_H
115 # include <ws2tcpip.h>
118 # ifdef HAVE_WINSOCK_H
132 #ifdef HAVE_WINSOCK2_H
133 # define USE_WINSOCK 2
135 # ifdef HAVE_WINSOCK_H
136 # define USE_WINSOCK 1
144 #ifndef HAVE_CONFIG_H
146 #if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__)
147 #define HAVE_SYS_TIME_H
150 #if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
151 #define HAVE_UNISTD_H 1
154 #if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS)
155 #define HAVE_SYS_UIO_H
164 #ifndef GETHOSTNAME_TYPE_ARG2
166 # define GETHOSTNAME_TYPE_ARG2 int
168 # define GETHOSTNAME_TYPE_ARG2 size_t
173 # include <sys/types.h>
184 #if (defined(ANDROID) || defined(__ANDROID__) || defined(__MVS__)) && \
185 defined(HAVE_ARPA_NAMESER_H)
186 # undef HAVE_ARPA_NAMESER_H
195 #undef PACKAGE_STRING
196 #undef PACKAGE_TARNAME
197 #undef PACKAGE_VERSION
198 #undef PACKAGE_BUGREPORT
204 #if !defined(HAVE_AF_INET6)
205 #if defined(HAVE_PF_INET6)
206 #define AF_INET6 PF_INET6
208 #define AF_INET6 AF_MAX+1
216 #ifndef __SETUP_ONCE_H
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:33