aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-02-13 11:12:36 -0800
committerGravatar vjpai <vpai@google.com>2015-02-13 11:12:36 -0800
commitc2340873123f8dbd51dc512cb4abb308e82e2c73 (patch)
treee0629a0b23d4af88d4ba70a701f505fe65341829 /src/core/support
parentbb62706f8428357d3f96d6de9e65c8fc6b439b9c (diff)
Fix header file for Mac
Diffstat (limited to 'src/core/support')
-rw-r--r--src/core/support/time_posix.c4
1 files changed, 3 insertions, 1 deletions
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 <sys/time.h>
+
gpr_timespec gpr_now(void) {
gpr_timespec now;
struct timeval now_tv;