summaryrefslogtreecommitdiff
path: root/graphics/libkexiv2/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libkexiv2/patches/patch-aa')
-rw-r--r--graphics/libkexiv2/patches/patch-aa25
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/libkexiv2/patches/patch-aa b/graphics/libkexiv2/patches/patch-aa
new file mode 100644
index 00000000000..e01932ad836
--- /dev/null
+++ b/graphics/libkexiv2/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1 2007/03/22 13:51:00 joerg Exp $
+
+--- libkexiv2/kexiv2.cpp.orig 2007-03-22 13:32:51.000000000 +0000
++++ libkexiv2/kexiv2.cpp
+@@ -61,6 +61,20 @@
+
+ #include "kexiv2.h"
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
++
++#if defined(__DragonFly__) || (defined(__NetBSD__) && __NetBSD_Version__ <= 399001700)
++static double trunc(double val)
++{
++ if (val > 0)
++ return floor(val);
++ else
++ return ceil(val);
++}
++#endif
++
+ namespace KExiv2Iface
+ {
+