Browse Source

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

ckolivas 12 years ago
parent
commit
05123bf452
1 changed files with 5 additions and 0 deletions
  1. 5 0
      miner.h

+ 5 - 0
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))