diff options
author | vjpai <vpai@google.com> | 2015-02-13 11:12:36 -0800 |
---|---|---|
committer | vjpai <vpai@google.com> | 2015-02-13 11:12:36 -0800 |
commit | c2340873123f8dbd51dc512cb4abb308e82e2c73 (patch) | |
tree | e0629a0b23d4af88d4ba70a701f505fe65341829 | |
parent | bb62706f8428357d3f96d6de9e65c8fc6b439b9c (diff) |
Fix header file for Mac
-rw-r--r-- | src/core/support/time_posix.c | 4 |
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; |