aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/surface/init.c')
-rw-r--r--src/core/surface/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/init.c b/src/core/surface/init.c
index a31f0960aa..f642810d12 100644
--- a/src/core/surface/init.c
+++ b/src/core/surface/init.c
@@ -38,6 +38,7 @@
#include <grpc/census.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
+#include <grpc/support/time.h>
#include "src/core/channel/channel_stack.h"
#include "src/core/client_config/resolver_registry.h"
#include "src/core/client_config/resolvers/dns_resolver.h"
@@ -91,6 +92,7 @@ void grpc_init(void) {
gpr_mu_lock(&g_init_mu);
if (++g_initializations == 1) {
+ gpr_time_init();
grpc_resolver_registry_init("dns:///");
grpc_register_resolver_type("dns", grpc_dns_resolver_factory_create());
#ifdef GPR_POSIX_SOCKET