ares_build-linux.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_SOCKET_H
  14. #define CARES_HAVE_SYS_SELECT_H
  15. /* #undef CARES_HAVE_WINDOWS_H */
  16. /* #undef CARES_HAVE_WS2TCPIP_H */
  17. /* #undef CARES_HAVE_WINSOCK2_H */
  18. #define CARES_HAVE_ARPA_NAMESER_H
  19. #define CARES_HAVE_ARPA_NAMESER_COMPAT_H
  20. #ifdef CARES_HAVE_SYS_TYPES_H
  21. # include <sys/types.h>
  22. #endif
  23. #ifdef CARES_HAVE_SYS_SOCKET_H
  24. # include <sys/socket.h>
  25. #endif
  26. #ifdef CARES_HAVE_SYS_SELECT_H
  27. # include <sys/select.h>
  28. #endif
  29. #ifdef CARES_HAVE_WINSOCK2_H
  30. # include <winsock2.h>
  31. #endif
  32. #ifdef CARES_HAVE_WS2TCPIP_H
  33. # include <ws2tcpip.h>
  34. #endif
  35. #ifdef CARES_HAVE_WINDOWS_H
  36. # include <windows.h>
  37. #endif
  38. #endif /* __CARES_BUILD_H */