--- src/Patchage.cpp.orig 2011-01-10 07:53:06.000000000 +0900 +++ src/Patchage.cpp 2011-07-24 02:43:38.000000000 +0900 @@ -21,6 +21,11 @@ #include #include +#include +#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) +#define log2f(x) (logf(x) / logf(2)) +#endif + #include #include #include