summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2007-10-07 21:21:00 +0000
committerheinz <heinz@pkgsrc.org>2007-10-07 21:21:00 +0000
commit7efc027683eacd7fb8a297ff73a0c9326037ea26 (patch)
tree5a6c9e0fbfb8e61f53443d2ef19a7193943cd163 /emulators
parent648ac07806bb0450a4f0a1b90dbec4e66fc071ef (diff)
downloadpkgsrc-7efc027683eacd7fb8a297ff73a0c9326037ea26.tar.gz
Provided a simple trunc() implementation for NetBSD < 3 and Dragonfly <
1.10 (thanks to Joerg Sonneberger). This fix should solve PR pkg/36602 by Pierre Pronchery.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/distinfo3
-rw-r--r--emulators/qemu/patches/patch-av27
2 files changed, 29 insertions, 1 deletions
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index a10036d3be5..ff299a991e5 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2007/05/21 20:24:44 xtraeme Exp $
+$NetBSD: distinfo,v 1.33 2007/10/07 21:21:00 heinz Exp $
SHA1 (qemu-0.9.0.tar.gz) = 1e57e48a06eb8729913d92601000466eecef06cb
RMD160 (qemu-0.9.0.tar.gz) = 4296542b6da18a6ac93d20787330d3c1c2ac0a19
@@ -10,6 +10,7 @@ SHA1 (patch-ak) = d57f616987260a700f038a633708a27b68d2bbe2
SHA1 (patch-am) = a22a3b23284c377afa8113768d68c8ef40c514f9
SHA1 (patch-ao) = e92d56f991cf29f83e39464f9e695caa86fe5fe0
SHA1 (patch-au) = afe7e210b7158064b8f64452c5e5ab95631bf9eb
+SHA1 (patch-av) = 715e9680d70c1aa1c83bda0270125144a26d6140
SHA1 (patch-aw) = 3b1472a95a2312f9e49ea1a6aa517ad81328324c
SHA1 (patch-ax) = 66b060005ecbf9fd0451f7960e81eccbabf959ca
SHA1 (patch-ay) = 2d3051685878abe077abdbba9681bd04e04c7fb3
diff --git a/emulators/qemu/patches/patch-av b/emulators/qemu/patches/patch-av
new file mode 100644
index 00000000000..e084c729c30
--- /dev/null
+++ b/emulators/qemu/patches/patch-av
@@ -0,0 +1,27 @@
+$NetBSD: patch-av,v 1.3 2007/10/07 21:21:00 heinz Exp $
+
+ Provide trunc() implementation for NetBSD 3 and Dragonfly
+
+--- fpu/softfloat-native.c.orig 2007-02-06 00:01:54.000000000 +0100
++++ fpu/softfloat-native.c
+@@ -3,6 +3,20 @@
+ #include "softfloat.h"
+ #include <math.h>
+
++#if defined(__DragonFly__) || defined(__NetBSD__)
++# include <sys/param.h>
++#endif
++
++#if (defined(__DragonFly__) && __DragonFly_version < 195000) || (defined(__NetBSD__) && __NetBSD_Version__ <= 399001700)
++static double trunc( double val )
++{
++ if (val > 0)
++ return floor(val);
++ else
++ return ceil(val);
++}
++#endif
++
+ void set_float_rounding_mode(int val STATUS_PARAM)
+ {
+ STATUS(float_rounding_mode) = val;