ports/audio/audacity/patches/patch-src_MIDIPlay_cpp

12 lines
410 B
Text

Index: src/MIDIPlay.cpp
--- src/MIDIPlay.cpp.orig
+++ src/MIDIPlay.cpp
@@ -490,7 +490,7 @@ static double SystemTime(bool usingAlsa)
if (usingAlsa) {
struct timespec now;
// CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time
-#ifdef FreeBSD
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
clock_gettime(CLOCK_REALTIME, &now);
#else
clock_gettime(CLOCK_MONOTONIC_RAW, &now);