summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2019-11-21 17:55:59 +0100
committerWim Taymans <wtaymans@redhat.com>2019-11-21 17:55:59 +0100
commitb73976ff104113d91a7695468d755addb2c2812d (patch)
treea0d0b81893951a6dddb2cf892cb1d940d246509e
parent772bf2dce211460c10359163bde3c462d31102f5 (diff)
logger: use CLOCK_MONOTONIC on freebsd
-rw-r--r--spa/plugins/support/logger.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/spa/plugins/support/logger.c b/spa/plugins/support/logger.c
index f9197a56..1b9d1079 100644
--- a/spa/plugins/support/logger.c
+++ b/spa/plugins/support/logger.c
@@ -37,6 +37,10 @@
#include <spa/utils/type.h>
#include <spa/utils/names.h>
+#ifdef __FreeBSD__
+#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
+#endif
+
#define NAME "logger"
#define DEFAULT_LOG_LEVEL SPA_LOG_LEVEL_INFO