Skip to content
Snippets Groups Projects
Commit 3609f786 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #517 from vjpai/mac

Fix time header file for Mac
parents 43517d92 c2340873
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,9 @@ gpr_timespec gpr_now(void) { ...@@ -70,7 +70,9 @@ gpr_timespec gpr_now(void) {
} }
#else #else
/* For some reason Apple's OSes haven't implemented clock_gettime. */ /* 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 gpr_now(void) {
gpr_timespec now; gpr_timespec now;
struct timeval now_tv; struct timeval now_tv;
......
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