log2 does not exist in math.h on freebsd
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 12:37:18 +0000 (12:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 Oct 2011 12:37:18 +0000 (12:37 +0000)
src/nse/gnunet-service-nse.c

index b0d635be6a7de51b855b0551ea17ecf7a635899a..543e4794aed97b8807bb19cc999bd0f70cc4f29e 100644 (file)
  */
 #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.
  */