projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a83f84
)
log2 does not exist in math.h on freebsd
author
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 6 Oct 2011 12:37:18 +0000
(12:37 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 6 Oct 2011 12:37:18 +0000
(12:37 +0000)
src/nse/gnunet-service-nse.c
patch
|
blob
|
history
diff --git
a/src/nse/gnunet-service-nse.c
b/src/nse/gnunet-service-nse.c
index b0d635be6a7de51b855b0551ea17ecf7a635899a..543e4794aed97b8807bb19cc999bd0f70cc4f29e 100644
(file)
--- 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.
*/