ares_build-linux.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
  8. #define CARES_TYPEOF_ARES_SSIZE_T ssize_t
  9. /* Prefix names with CARES_ to make sure they don't conflict with other config.h
  10. * files. We need to include some dependent headers that may be system specific
  11. * for C-Ares */
  12. #define CARES_HAVE_SYS_TYPES_H
  13. #define CARES_HAVE_SYS_RANDOM_H
  14. #define CARES_HAVE_SYS_SOCKET_H
  15. /* #undef CARES_HAVE_WINDOWS_H */
  16. /* #undef CARES_HAVE_WS2TCPIP_H */
  17. /* #undef CARES_HAVE_WINSOCK2_H */
  18. /* #undef CARES_HAVE_WINDOWS_H */
  19. #define CARES_HAVE_ARPA_NAMESER_H
  20. #define CARES_HAVE_ARPA_NAMESER_COMPAT_H
  21. #ifdef CARES_HAVE_SYS_TYPES_H
  22. # include <sys/types.h>
  23. #endif
  24. #ifdef CARES_HAVE_SYS_RANDOM_H
  25. # include <sys/random.h>
  26. #endif
  27. #ifdef CARES_HAVE_SYS_SOCKET_H
  28. # include <sys/socket.h>
  29. #endif
  30. #ifdef CARES_HAVE_WINSOCK2_H
  31. # include <winsock2.h>
  32. #endif
  33. #ifdef CARES_HAVE_WS2TCPIP_H
  34. # include <ws2tcpip.h>
  35. #endif
  36. #ifdef CARES_HAVE_WINDOWS_H
  37. # include <windows.h>
  38. #endif
  39. typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
  40. typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
  41. #endif /* __CARES_BUILD_H */