Browse Source

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

nfactor-troky
ckolivas 12 years ago
parent
commit
05123bf452
  1. 5
      miner.h

5
miner.h

@ -210,6 +210,11 @@ static inline int fsync (int fd) @@ -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))

Loading…
Cancel
Save