mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
19 lines
557 B
Text
19 lines
557 B
Text
Index: qemu/vl.c
|
|
@@ -541,7 +541,7 @@
|
|
static void init_get_clock(void)
|
|
{
|
|
use_rt_clock = 0;
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
|
|
{
|
|
struct timespec ts;
|
|
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
|
|
@@ -553,7 +553,7 @@
|
|
|
|
static int64_t get_clock(void)
|
|
{
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
|
|
if (use_rt_clock) {
|
|
struct timespec ts;
|
|
clock_gettime(CLOCK_MONOTONIC, &ts);
|