diff --git a/app/redis-3.2.8/src/ae.c b/app/redis-3.2.8/src/ae.c index 58514943..06df4df4 100644 --- a/app/redis-3.2.8/src/ae.c +++ b/app/redis-3.2.8/src/ae.c @@ -185,7 +185,12 @@ static void aeGetTime(long *seconds, long *milliseconds) { struct timeval tv; +#ifdef HAVE_FF_KQUEUE + ff_gettimeofday(&tv, NULL); +#else gettimeofday(&tv, NULL); +#endif + *seconds = tv.tv_sec; *milliseconds = tv.tv_usec/1000; }