[cobalt] Fix GN build for linux

Change-Id: I526f0c449c6ce9b7ece5a21964f56af79072cd75
1 file changed
tree: 488d147a8829f27ce988045fe77ff5a49e7f9b83
  1. m4/
  2. test/
  3. travis/
  4. vc/
  5. .gitignore
  6. .travis.yml
  7. acinclude.m4
  8. acountry.1
  9. acountry.c
  10. adig.1
  11. adig.c
  12. ahost.1
  13. ahost.c
  14. appveyor.yml
  15. ares.h
  16. ares__close_sockets.c
  17. ares__get_hostent.c
  18. ares__read_line.c
  19. ares__timeval.c
  20. ares_build.h
  21. ares_build.h.cmake
  22. ares_build.h.dist
  23. ares_build.h.in
  24. ares_cancel.3
  25. ares_cancel.c
  26. ares_config.h
  27. ares_config.h.cmake
  28. ares_create_query.3
  29. ares_create_query.c
  30. ares_data.c
  31. ares_data.h
  32. ares_destroy.3
  33. ares_destroy.c
  34. ares_destroy_options.3
  35. ares_dns.h
  36. ares_dup.3
  37. ares_expand_name.3
  38. ares_expand_name.c
  39. ares_expand_string.3
  40. ares_expand_string.c
  41. ares_fds.3
  42. ares_fds.c
  43. ares_free_data.3
  44. ares_free_hostent.3
  45. ares_free_hostent.c
  46. ares_free_string.3
  47. ares_free_string.c
  48. ares_get_servers.3
  49. ares_get_servers_ports.3
  50. ares_getenv.c
  51. ares_getenv.h
  52. ares_gethostbyaddr.3
  53. ares_gethostbyaddr.c
  54. ares_gethostbyname.3
  55. ares_gethostbyname.c
  56. ares_gethostbyname_file.3
  57. ares_getnameinfo.3
  58. ares_getnameinfo.c
  59. ares_getopt.c
  60. ares_getopt.h
  61. ares_getsock.3
  62. ares_getsock.c
  63. ares_inet_net_pton.h
  64. ares_inet_ntop.3
  65. ares_inet_pton.3
  66. ares_init.3
  67. ares_init.c
  68. ares_init_options.3
  69. ares_iphlpapi.h
  70. ares_ipv6.h
  71. ares_library_cleanup.3
  72. ares_library_init.3
  73. ares_library_init.c
  74. ares_library_init.h
  75. ares_library_initialized.3
  76. ares_llist.c
  77. ares_llist.h
  78. ares_mkquery.3
  79. ares_mkquery.c
  80. ares_nowarn.c
  81. ares_nowarn.h
  82. ares_options.c
  83. ares_parse_a_reply.3
  84. ares_parse_a_reply.c
  85. ares_parse_aaaa_reply.3
  86. ares_parse_aaaa_reply.c
  87. ares_parse_mx_reply.3
  88. ares_parse_mx_reply.c
  89. ares_parse_naptr_reply.3
  90. ares_parse_naptr_reply.c
  91. ares_parse_ns_reply.3
  92. ares_parse_ns_reply.c
  93. ares_parse_ptr_reply.3
  94. ares_parse_ptr_reply.c
  95. ares_parse_soa_reply.3
  96. ares_parse_soa_reply.c
  97. ares_parse_srv_reply.3
  98. ares_parse_srv_reply.c
  99. ares_parse_txt_reply.3
  100. ares_parse_txt_reply.c
  101. ares_platform.c
  102. ares_platform.h
  103. ares_private.h
  104. ares_process.3
  105. ares_process.c
  106. ares_query.3
  107. ares_query.c
  108. ares_rules.h
  109. ares_save_options.3
  110. ares_search.3
  111. ares_search.c
  112. ares_send.3
  113. ares_send.c
  114. ares_set_local_dev.3
  115. ares_set_local_ip4.3
  116. ares_set_local_ip6.3
  117. ares_set_servers.3
  118. ares_set_servers_csv.3
  119. ares_set_servers_ports.3
  120. ares_set_servers_ports_csv.3
  121. ares_set_socket_callback.3
  122. ares_set_socket_configure_callback.3
  123. ares_set_socket_functions.3
  124. ares_set_sortlist.3
  125. ares_setup.h
  126. ares_strcasecmp.c
  127. ares_strcasecmp.h
  128. ares_strdup.c
  129. ares_strdup.h
  130. ares_strerror.3
  131. ares_strerror.c
  132. ares_timeout.3
  133. ares_timeout.c
  134. ares_version.3
  135. ares_version.c
  136. ares_version.h
  137. ares_writev.c
  138. ares_writev.h
  139. AUTHORS
  140. bitncmp.c
  141. bitncmp.h
  142. BUILD.gn
  143. buildconf
  144. buildconf.bat
  145. c-ares-config.cmake.in
  146. cares.rc
  147. CHANGES
  148. CHANGES.0
  149. CMakeLists.txt
  150. config-dos.h
  151. config-win32.h
  152. configure.ac
  153. CONTRIBUTING.md
  154. get_ver.awk
  155. GIT-INFO
  156. git2changes.pl
  157. inet_net_pton.c
  158. inet_ntop.c
  159. install-sh
  160. INSTALL.md
  161. libcares.pc.in
  162. LICENSE.md
  163. Makefile.am
  164. Makefile.dj
  165. Makefile.inc
  166. Makefile.m32
  167. Makefile.msvc
  168. Makefile.netware
  169. Makefile.Watcom
  170. maketgz
  171. mkinstalldirs
  172. msvc_ver.inc
  173. nameser.h
  174. NEWS
  175. README.cares
  176. README.md
  177. README.msvc
  178. RELEASE-NOTES
  179. SECURITY.md
  180. setup_once.h
  181. TODO
  182. windows_port.c
README.md

c-ares

Build Status Windows Build Status Coverage Status CII Best Practices

This is c-ares, an asynchronous resolver library. It is intended for applications which need to perform DNS queries without blocking, or need to perform multiple DNS queries in parallel. The primary examples of such applications are servers which communicate with multiple clients and programs with graphical user interfaces.

The full source code is available in the ‘c-ares’ release archives, and in a git repository: http://github.com/c-ares/c-ares. See the INSTALL.md file for build information.

If you find bugs, correct flaws, have questions or have comments in general in regard to c-ares (or by all means the original ares too), get in touch with us on the c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares

c-ares is of course distributed under the same MIT-style license as the original ares.

You'll find all c-ares details and news here: https://c-ares.haxx.se/

Notes for c-ares hackers

  • The distributed ares_build.h file is only intended to be used on systems which can not run the also distributed configure script.

  • The distributed ares_build.h file is generated as a copy of ares_build.h.dist when the c-ares source code distribution archive file is originally created.

  • If you check out from git on a non-configure platform, you must run the appropriate buildconf* script to set up ares_build.h and other local files before being able to compile the library.

  • On systems capable of running the configure script, the configure process will overwrite the distributed ares_build.h file with one that is suitable and specific to the library being configured and built, this new file is generated from the ares_build.h.in template file.

  • If you intend to distribute an already compiled c-ares library you MUST also distribute along with it the generated ares_build.h which has been used to compile it. Otherwise the library will be of no use for the users of the library that you have built. It is your responsibility to provide this file. No one at the c-ares project can know how you have built the library.

  • File ares_build.h includes platform and configuration dependent info, and must not be modified by anyone. Configure script generates it for you.

  • We cannot assume anything else but very basic compiler features being present. While c-ares requires an ANSI C compiler to build, some of the earlier ANSI compilers clearly can't deal with some preprocessor operators.

  • Newlines must remain unix-style for older compilers' sake.

  • Comments must be written in the old-style /* unnested C-fashion */

  • Try to keep line lengths below 80 columns.