opnsense-ports/graphics/gegl/files/patch-tools_exp_combine.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
467 B
C++

--- tools/exp_combine.cpp.orig 2011-03-02 09:30:13.000000000 +0100
+++ tools/exp_combine.cpp 2011-03-02 09:27:16.000000000 +0100
@@ -6,6 +6,11 @@
#include <cerrno>
#include <cmath>
+#include <sys/param.h>
+#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 <iostream>
#include <exiv2/image.hpp>