11cb0ef41Sopenharmony_ci#ifndef __CARES_BUILD_H 21cb0ef41Sopenharmony_ci#define __CARES_BUILD_H 31cb0ef41Sopenharmony_ci/* 41cb0ef41Sopenharmony_ci * Copyright (C) The c-ares project and its contributors 51cb0ef41Sopenharmony_ci * SPDX-License-Identifier: MIT 61cb0ef41Sopenharmony_ci */ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci#define CARES_TYPEOF_ARES_SOCKLEN_T @CARES_TYPEOF_ARES_SOCKLEN_T@ 91cb0ef41Sopenharmony_ci#define CARES_TYPEOF_ARES_SSIZE_T @CARES_TYPEOF_ARES_SSIZE_T@ 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci/* Prefix names with CARES_ to make sure they don't conflict with other config.h 121cb0ef41Sopenharmony_ci * files. We need to include some dependent headers that may be system specific 131cb0ef41Sopenharmony_ci * for C-Ares */ 141cb0ef41Sopenharmony_ci#undef CARES_HAVE_SYS_TYPES_H 151cb0ef41Sopenharmony_ci#undef CARES_HAVE_SYS_SOCKET_H 161cb0ef41Sopenharmony_ci#undef CARES_HAVE_WINDOWS_H 171cb0ef41Sopenharmony_ci#undef CARES_HAVE_WS2TCPIP_H 181cb0ef41Sopenharmony_ci#undef CARES_HAVE_WINSOCK2_H 191cb0ef41Sopenharmony_ci#undef CARES_HAVE_WINDOWS_H 201cb0ef41Sopenharmony_ci#undef CARES_HAVE_ARPA_NAMESER_H 211cb0ef41Sopenharmony_ci#undef CARES_HAVE_ARPA_NAMESER_COMPAT_H 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci#ifdef CARES_HAVE_SYS_TYPES_H 241cb0ef41Sopenharmony_ci# include <sys/types.h> 251cb0ef41Sopenharmony_ci#endif 261cb0ef41Sopenharmony_ci 271cb0ef41Sopenharmony_ci#ifdef CARES_HAVE_SYS_SOCKET_H 281cb0ef41Sopenharmony_ci# include <sys/socket.h> 291cb0ef41Sopenharmony_ci#endif 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci#ifdef CARES_HAVE_WINSOCK2_H 321cb0ef41Sopenharmony_ci# include <winsock2.h> 331cb0ef41Sopenharmony_ci#endif 341cb0ef41Sopenharmony_ci 351cb0ef41Sopenharmony_ci#ifdef CARES_HAVE_WS2TCPIP_H 361cb0ef41Sopenharmony_ci# include <ws2tcpip.h> 371cb0ef41Sopenharmony_ci#endif 381cb0ef41Sopenharmony_ci 391cb0ef41Sopenharmony_ci#ifdef CARES_HAVE_WINDOWS_H 401cb0ef41Sopenharmony_ci# include <windows.h> 411cb0ef41Sopenharmony_ci#endif 421cb0ef41Sopenharmony_ci 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_citypedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; 451cb0ef41Sopenharmony_citypedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t; 461cb0ef41Sopenharmony_ci 471cb0ef41Sopenharmony_ci#endif /* __CARES_BUILD_H */ 48