hi-res timer commit broke FreeBSD. This attempts to go back to the

old code for FreeBSD.
This commit is contained in:
ejurgensen
2014-02-08 22:59:07 +01:00
parent 01f290cc2a
commit 258163e6ce
4 changed files with 38 additions and 13 deletions

View File

@@ -750,11 +750,11 @@ murmur_hash64(const void *key, int len, uint32_t seed)
return h;
}
#else
# error Platform not supported
#endif
#if defined(__linux__)
int
clock_gettime_with_res(clockid_t clock_id, struct timespec *tp, struct timespec *res)
{
@@ -805,3 +805,4 @@ timespec_cmp(struct timespec time1, struct timespec time2)
else
return 0;
}
#endif /* __linux__ */