ares_build.h 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __CARES_BUILD_H
  2. #define __CARES_BUILD_H
  3. #define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
  4. #define CARES_TYPEOF_ARES_SSIZE_T __int64
  5. /* Prefix names with CARES_ to make sure they don't conflict with other config.h
  6. * files. We need to include some dependent headers that may be system specific
  7. * for C-Ares */
  8. #define CARES_HAVE_SYS_TYPES_H
  9. /* #undef CARES_HAVE_SYS_SOCKET_H */
  10. #define CARES_HAVE_WINDOWS_H
  11. #define CARES_HAVE_WS2TCPIP_H
  12. #define CARES_HAVE_WINSOCK2_H
  13. #define CARES_HAVE_WINDOWS_H
  14. #ifdef CARES_HAVE_SYS_TYPES_H
  15. # include <sys/types.h>
  16. #endif
  17. #ifdef CARES_HAVE_SYS_SOCKET_H
  18. # include <sys/socket.h>
  19. #endif
  20. #ifdef CARES_HAVE_WINSOCK2_H
  21. # include <winsock2.h>
  22. #endif
  23. #ifdef CARES_HAVE_WS2TCPIP_H
  24. # include <ws2tcpip.h>
  25. #endif
  26. #ifdef CARES_HAVE_WINDOWS_H
  27. # include <windows.h>
  28. #endif
  29. typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
  30. typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
  31. #endif /* __CARES_BUILD_H */