From c2340873123f8dbd51dc512cb4abb308e82e2c73 Mon Sep 17 00:00:00 2001 From: vjpai Date: Fri, 13 Feb 2015 11:12:36 -0800 Subject: Fix header file for Mac --- src/core/support/time_posix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/support/time_posix.c b/src/core/support/time_posix.c index 7f0f028183..3f2a81ec05 100644 --- a/src/core/support/time_posix.c +++ b/src/core/support/time_posix.c @@ -70,7 +70,9 @@ gpr_timespec gpr_now(void) { } #else /* For some reason Apple's OSes haven't implemented clock_gettime. */ -/* TODO(klempner): Add special handling for Apple. */ + +#include + gpr_timespec gpr_now(void) { gpr_timespec now; struct timeval now_tv; -- cgit v1.2.3