Skip to content

Commit

Permalink
fix compilation warnings on sierra
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Vilchanskyi committed Apr 3, 2017
1 parent 4ba195e commit 1c77cd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ckb-daemon/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ extern pthread_mutex_t _euid_guard;

void *memrchr(const void *s, int c, size_t n);

#define CLOCK_MONOTONIC 1
#define TIMER_ABSTIME 1
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
typedef int clockid_t;
#define CLOCK_MONOTONIC 1
#endif

#define TIMER_ABSTIME 1

int clock_gettime(clockid_t clk_id, struct timespec *tp);
int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp);

Expand Down

0 comments on commit 1c77cd5

Please sign in to comment.