From: Matthias Wachs Date: Thu, 6 Oct 2011 12:37:18 +0000 (+0000) Subject: log2 does not exist in math.h on freebsd X-Git-Tag: initial-import-from-subversion-38251~16743 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2fb1bb841a5a7ce3783d84cea68938a8202928aa;p=oweals%2Fgnunet.git log2 does not exist in math.h on freebsd --- diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index b0d635be6..543e4794a 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -76,6 +76,10 @@ */ #define NSE_PRIORITY 5 +#if FREEBSD +#define log2(a) (log(a)/log(2)) +#endif + /** * Amount of work required (W-bit collisions) for NSE proofs, in collision-bits. */