ares_build.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 ssize_t
  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. #define CARES_HAVE_SYS_SOCKET_H
  10. /* #undef CARES_HAVE_WINDOWS_H */
  11. /* #undef CARES_HAVE_WS2TCPIP_H */
  12. /* #undef CARES_HAVE_WINSOCK2_H */
  13. /* #undef CARES_HAVE_WINDOWS_H */
  14. #define CARES_HAVE_ARPA_NAMESER_H
  15. #define CARES_HAVE_ARPA_NAMESER_COMPAT_H
  16. #ifdef CARES_HAVE_SYS_TYPES_H
  17. # include <sys/types.h>
  18. #endif
  19. #ifdef CARES_HAVE_SYS_SOCKET_H
  20. # include <sys/socket.h>
  21. #endif
  22. #ifdef CARES_HAVE_WINSOCK2_H
  23. # include <winsock2.h>
  24. #endif
  25. #ifdef CARES_HAVE_WS2TCPIP_H
  26. # include <ws2tcpip.h>
  27. #endif
  28. #ifdef CARES_HAVE_WINDOWS_H
  29. # include <windows.h>
  30. #endif
  31. typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
  32. typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
  33. #endif /* __CARES_BUILD_H */