fix ss build on newer osx

This commit is contained in:
Alexei Svitkine 2017-10-11 21:17:14 -04:00
parent 6bb9d00184
commit e60c1aa1d7
1 changed files with 3 additions and 3 deletions

View File

@ -402,10 +402,10 @@ static inline int spin_trylock(spinlock_t *lock)
#endif
// Time data type for Time Manager emulation
#ifdef HAVE_CLOCK_GETTIME
typedef struct timespec tm_time_t;
#elif defined(__MACH__)
#if defined(__MACH__)
typedef mach_timespec_t tm_time_t;
#elif defined(HAVE_CLOCK_GETTIME)
typedef struct timespec tm_time_t;
#else
typedef struct timeval tm_time_t;
#endif