mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Temporarily fix apple not having semtimedop by ignoring the timeout value.
This commit is contained in:
parent
065c1038a9
commit
05123bf452
5
miner.h
5
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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user