From b3239d25a1f4d93e96f79eba4f8ca2faa6d228ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20H=C3=B6sel?= Date: Tue, 29 Sep 2015 15:32:36 +0200 Subject: [PATCH] wrapping ntohll in ifndef for mac --- src/pow.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pow.cc b/src/pow.cc index b23958a..6dcba12 100644 --- a/src/pow.cc +++ b/src/pow.cc @@ -36,12 +36,14 @@ typedef struct { PowArgs* pow_args; } ThreadArgs; +#ifndef ntohll inline uint64_t ntohll(uint64_t x) { return ( ((uint64_t)(ntohl( (unsigned int)((x << 32) >> 32) )) << 32) | ntohl( ((unsigned int)(x >> 32)) ) ); } +#endif // Set POW computation result in a thread-safe way. void set_result(PowArgs* pow_args, PowResult res, uint64_t nonce) {