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