Skip to content
Snippets Groups Projects
Unverified Commit 3180dfaf authored by Axel Huebl's avatar Axel Huebl
Browse files

C-Ares: Remove Internal Header

The `nameser.h` header is a C-Ares internal header which is not
installed with C-Ares.

This fixes build errors with

  cmake -DgRPC_CARES_PROVIDER=package ..
parent 8f442604
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@
#include <grpc/support/string_util.h>
#include <grpc/support/time.h>
#include <grpc/support/useful.h>
#include <nameser.h>
#include "src/core/ext/filters/client_channel/parse_address.h"
#include "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h"
......@@ -358,6 +357,9 @@ static grpc_ares_request *grpc_dns_lookup_ares_impl(
grpc_ares_request_ref(r);
char *service_name;
gpr_asprintf(&service_name, "_grpclb._tcp.%s", host);
// see: RFC 1035, section 3.2.4. CLASS values
const int ns_c_in = 1; // internet
const int ns_t_srv = 33; // SRV record (RFC 2782)
ares_query(*channel, service_name, ns_c_in, ns_t_srv, on_srv_query_done_cb,
r);
gpr_free(service_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment