diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-06 12:37:18 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-06 12:37:18 +0000 |
commit | 2fb1bb841a5a7ce3783d84cea68938a8202928aa (patch) | |
tree | d1f1a3f1dc96e16de70212771111f2ef8b8328f7 /src/nse | |
parent | 5a83f84bc70a5b14f6a3672a1cd47f390f11c4fb (diff) | |
download | gnunet-2fb1bb841a5a7ce3783d84cea68938a8202928aa.tar.gz gnunet-2fb1bb841a5a7ce3783d84cea68938a8202928aa.zip |
log2 does not exist in math.h on freebsd
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
76 | */ | 76 | */ |
77 | #define NSE_PRIORITY 5 | 77 | #define NSE_PRIORITY 5 |
78 | 78 | ||
79 | #if FREEBSD | ||
80 | #define log2(a) (log(a)/log(2)) | ||
81 | #endif | ||
82 | |||
79 | /** | 83 | /** |
80 | * Amount of work required (W-bit collisions) for NSE proofs, in collision-bits. | 84 | * Amount of work required (W-bit collisions) for NSE proofs, in collision-bits. |
81 | */ | 85 | */ |