-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <stdlib.h> | ||
#include <sys/types.h> | ||
|
||
-#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <pthread.h> | ||
#include <inttypes.h> | ||
|
||
+#ifdef __APPLE__ | ||
+#include <libgen.h> | ||
+#endif | ||
+ | ||
#include <notes.h> | ||
#include <props.h> | ||
|