aboutsummaryrefslogtreecommitdiff
path: root/emulators/qemu/files/patch-be
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/files/patch-be')
-rw-r--r--emulators/qemu/files/patch-be4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulators/qemu/files/patch-be b/emulators/qemu/files/patch-be
index 95877801237d..71753fa84dfe 100644
--- a/emulators/qemu/files/patch-be
+++ b/emulators/qemu/files/patch-be
@@ -16,7 +16,7 @@ Index: qemu/vl.c
{
use_rt_clock = 0;
-#if defined(__linux__)
-+#if defined(__linux__) || defined(__FreeBSD__)
++#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
@@ -25,7 +25,7 @@ Index: qemu/vl.c
static int64_t get_clock(void)
{
-#if defined(__linux__)
-+#if defined(__linux__) || defined(__FreeBSD__)
++#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
if (use_rt_clock) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);