• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#ifndef __CARES_BUILD_H
2#define __CARES_BUILD_H
3/*
4 * Copyright (C) The c-ares project and its contributors
5 * SPDX-License-Identifier: MIT
6 */
7
8#define CARES_TYPEOF_ARES_SOCKLEN_T @CARES_TYPEOF_ARES_SOCKLEN_T@
9#define CARES_TYPEOF_ARES_SSIZE_T @CARES_TYPEOF_ARES_SSIZE_T@
10
11/* Prefix names with CARES_ to make sure they don't conflict with other config.h
12 * files.  We need to include some dependent headers that may be system specific
13 * for C-Ares */
14#undef CARES_HAVE_SYS_TYPES_H
15#undef CARES_HAVE_SYS_SOCKET_H
16#undef CARES_HAVE_WINDOWS_H
17#undef CARES_HAVE_WS2TCPIP_H
18#undef CARES_HAVE_WINSOCK2_H
19#undef CARES_HAVE_WINDOWS_H
20#undef CARES_HAVE_ARPA_NAMESER_H
21#undef CARES_HAVE_ARPA_NAMESER_COMPAT_H
22
23#ifdef CARES_HAVE_SYS_TYPES_H
24#  include <sys/types.h>
25#endif
26
27#ifdef CARES_HAVE_SYS_SOCKET_H
28#  include <sys/socket.h>
29#endif
30
31#ifdef CARES_HAVE_WINSOCK2_H
32#  include <winsock2.h>
33#endif
34
35#ifdef CARES_HAVE_WS2TCPIP_H
36#  include <ws2tcpip.h>
37#endif
38
39#ifdef CARES_HAVE_WINDOWS_H
40#  include <windows.h>
41#endif
42
43
44typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
45typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
46
47#endif /* __CARES_BUILD_H */
48