1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-21 04:30:37 -04:00
ports/emulators/reicast/files/patch-libswirl_libswirl.cpp
Timothy Beyer afa8682087 emulators/reicast: fix i386 build
PR:	264218
Reported by:	beyert@cs.ucr.edu (maintainer)
2022-06-30 07:34:25 +02:00

11 lines
610 B
C++

--- libswirl/libswirl.cpp.orig 2020-10-18 11:22:48 UTC
+++ libswirl/libswirl.cpp
@@ -95,7 +95,7 @@ int64_t get_time_usec(void)
if (!QueryPerformanceCounter(&count))
return 0;
return count.QuadPart * 1000000 / freq.QuadPart;
-#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) || HOST_OS==OS_LINUX
+#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) || HOST_OS==OS_LINUX || HOST_OS==OS_FREEBSD
struct timespec tv = { 0 };
if (clock_gettime(CLOCK_MONOTONIC, &tv) < 0)
return 0;