diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-05-18 17:50:12 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-05-18 17:50:12 +0000 |
commit | 26db8f6e8bda5cf8778a18ed3e0b06d7c7d70150 (patch) | |
tree | 52cda3b6517abcf8cfffe0fb4a3a35a055a95fbe | |
parent | 31ac02bd2729f5701ff471453720e90c9e5d3e48 (diff) |
audio/spectacle-lv2: fix build on powerpc64*
ori 0,0,0 is the noop instruction on powerpc64*.
-rw-r--r-- | audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h b/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h new file mode 100644 index 000000000000..3c34a14e9143 --- /dev/null +++ b/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h @@ -0,0 +1,13 @@ +--- thirdparty/spin_mutex/src/SpinLoopPause.h.orig 2021-05-18 17:31:07 UTC ++++ thirdparty/spin_mutex/src/SpinLoopPause.h +@@ -32,6 +32,10 @@ static inline void spin_loop_pause() noexcept { + asm volatile ("nop" ::: "memory"); + #endif + } ++#elif defined(__powerpc64__) ++static inline void spin_loop_pause() noexcept { ++ asm volatile("ori 0,0,0" ::: "memory"); ++} + #else + #error "Unknown CPU architecture." + #endif |