FreeBSD fix

This commit is contained in:
Phillip Stephens 2017-01-07 16:20:46 -08:00
parent 4699542f93
commit b82c928e45
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#ifndef _WIN32
#include <unistd.h>
#include <sys/time.h>
#if __APPLE__
#include <mach/mach_time.h>
#endif
@ -27,7 +28,7 @@ u64 GetGCTicks()
{
#if __APPLE__
return mach_absolute_time() * MachToDolphinNum / MachToDolphinDenom;
#elif __linux__
#elif __linux__ || __FreeBSD__
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);