Commit 05123bf452b884db8bcf8becd6f10d7eef694bc6

ckolivas 2013-06-05T15:50:30

Temporarily fix apple not having semtimedop by ignoring the timeout value.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/miner.h b/miner.h
index 63b387f..725c1ab 100644
--- a/miner.h
+++ b/miner.h
@@ -210,6 +210,11 @@ static inline int fsync (int fd)
 #endif
 #endif
 
+/* No semtimedop on apple so ignore timeout till we implement one */
+#ifdef __APPLE__
+#define semtimedop(SEM, SOPS, VAL, TIMEOUT) semop(SEM, SOPS, VAL)
+#endif
+
 #define MIN(x, y)	((x) > (y) ? (y) : (x))
 #define MAX(x, y)	((x) > (y) ? (x) : (y))