summaryrefslogtreecommitdiff
path: root/graphics/kipi-plugins/patches/patch-aa
blob: 596519a499ba5608d01fe9fa980bd34b6d130a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-aa,v 1.6 2007/02/15 13:49:11 joerg Exp $

--- kipi-plugins/common/exiv2iface/exiv2iface.cpp.orig	2007-02-07 23:19:19.000000000 +0000
+++ kipi-plugins/common/exiv2iface/exiv2iface.cpp
@@ -61,6 +61,20 @@
 
 #include "exiv2iface.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 KIPIPlugins
 {