blob: ace6ec2250680ff05b62940923a632fbe09fcd15 (
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.4 2008/01/14 23:17:27 wiz Exp $
--- libkexiv2/libkexiv2/kexiv2.cpp.orig 2007-05-08 15:02:40.000000000 +0000
+++ libkexiv2/libkexiv2/kexiv2.cpp
@@ -60,6 +60,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
{
|