diff options
author | gahr <gahr@FreeBSD.org> | 2011-03-02 20:42:51 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2011-03-02 20:42:51 +0800 |
commit | 060c82e41608a58d31acd1b201056a4bb5521959 (patch) | |
tree | 447f28604c9f21ef9d03245e7e6cd29eff15fdb0 /graphics | |
parent | 2c7d0d5c20da7d2bb23b1dc3ce04bcfc841c1368 (diff) | |
download | freebsd-ports-gnome-060c82e41608a58d31acd1b201056a4bb5521959.tar.gz freebsd-ports-gnome-060c82e41608a58d31acd1b201056a4bb5521959.tar.zst freebsd-ports-gnome-060c82e41608a58d31acd1b201056a4bb5521959.zip |
- Add a patch to workaround the lack of log2f in older releases.
NOTE: this should not hit users of CURRENT, 7.4 or 8.2.
Reported by: ajtiM <lumiwa@gmail.com>
Warren Block <wblock@wonkity.com>
Christoph Moench-Tegeder <cmt@burggraben.net>
PR: ports/155183
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gegl/files/patch-tools_exp_combine.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/gegl/files/patch-tools_exp_combine.cpp b/graphics/gegl/files/patch-tools_exp_combine.cpp new file mode 100644 index 000000000000..fef99b033d06 --- /dev/null +++ b/graphics/gegl/files/patch-tools_exp_combine.cpp @@ -0,0 +1,14 @@ +--- 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 < 704000 || (__FreeBSD_version > 800000 && __FreeBSD_version < 802000) || (__FreeBSD_version > 900000 && __FreeBSD_version < 900027) ++#define log2f(x) (logf(x) / logf(2)) ++#endif ++ + #include <iostream> + + #include <exiv2/image.hpp> |