diff --git a/plugins/package/modspectre/01_fix-macos-build.patch b/plugins/package/modspectre/01_fix-macos-build.patch new file mode 100644 index 00000000..ba9c71f8 --- /dev/null +++ b/plugins/package/modspectre/01_fix-macos-build.patch @@ -0,0 +1,13 @@ +diff --git a/src/ringbuf.h b/src/ringbuf.h +index 7f660ff..ed466c2 100644 +--- a/src/ringbuf.h ++++ b/src/ringbuf.h +@@ -20,7 +20,7 @@ + #include + #include + +-#if defined __ATOMIC_SEQ_CST ++#if defined __ATOMIC_SEQ_CST && ! defined __APPLE__ + + #define _atomic_int_get(P) __atomic_load_4 (&(P), __ATOMIC_SEQ_CST) + #define _atomic_int_set(P, V) __atomic_store_4 (&(P), (V), __ATOMIC_SEQ_CST) diff --git a/plugins/package/notes-lv2/02_fix-macos-build.patch b/plugins/package/notes-lv2/02_fix-macos-build.patch new file mode 100644 index 00000000..67701b33 --- /dev/null +++ b/plugins/package/notes-lv2/02_fix-macos-build.patch @@ -0,0 +1,15 @@ +diff --git a/notes.c b/notes.c +index 6af3c4d..bf190ff 100644 +--- a/notes.c ++++ b/notes.c +@@ -27,6 +27,10 @@ + #include + #include + ++#ifdef __APPLE__ ++#include ++#endif ++ + #include + #include +