diff options
author | dimitri staessens <[email protected]> | 2017-08-11 09:57:31 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-08-11 09:57:31 +0000 |
commit | f957c2c499f8093ae86e673e2170f9dbfdcb761a (patch) | |
tree | 89cb20e426cb3977337e1d16bdb0a445622d6f75 /src/ipcpd/normal/dht.c | |
parent | 2b42b1e1121dfd715a78502a3652d326330b8160 (diff) | |
parent | aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 (diff) | |
download | ouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.tar.gz ouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.zip |
Merged in dstaesse/ouroboros/be-apple (pull request #548)
build: Fix compilation on OS X Sierra
Diffstat (limited to 'src/ipcpd/normal/dht.c')
-rw-r--r-- | src/ipcpd/normal/dht.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 5c294c00..e1c34b6f 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -46,6 +46,10 @@ typedef KadMsg kad_msg_t; typedef KadContactMsg kad_contact_msg_t; +#ifndef CLOCK_REALTIME_COARSE +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME +#endif + #define DHT_MAX_REQS 2048 /* KAD recommends rnd(), bmp can be changed. */ #define KAD_ALPHA 3 /* Parallel factor, proven optimal value. */ #define KAD_K 8 /* Replication factor, MDHT value. */ |