summaryrefslogtreecommitdiff
path: root/emulators/dosbox
diff options
context:
space:
mode:
authorwiz <wiz>2004-10-06 00:09:23 +0000
committerwiz <wiz>2004-10-06 00:09:23 +0000
commit45adfa90a94879773740bdbca3eaa5010d97415e (patch)
tree4eb10239370a555d35e2d727df3415801ea423bf /emulators/dosbox
parentd3470d102b69f570d3ab9e8da57249c2aca7c958 (diff)
downloadpkgsrc-45adfa90a94879773740bdbca3eaa5010d97415e.tar.gz
Use rint instead of lround to make it build on 2.0.
Diffstat (limited to 'emulators/dosbox')
-rw-r--r--emulators/dosbox/distinfo3
-rw-r--r--emulators/dosbox/patches/patch-aa13
2 files changed, 15 insertions, 1 deletions
diff --git a/emulators/dosbox/distinfo b/emulators/dosbox/distinfo
index fb6071d2d95..a98352ca7b1 100644
--- a/emulators/dosbox/distinfo
+++ b/emulators/dosbox/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.5 2004/10/01 00:09:17 xtraeme Exp $
+$NetBSD: distinfo,v 1.6 2004/10/06 00:09:23 wiz Exp $
SHA1 (dosbox-0.62.tar.gz) = 998053d80fa70b761e9752b36abaf79433eadaff
Size (dosbox-0.62.tar.gz) = 633259 bytes
+SHA1 (patch-aa) = 3393501f0d438e53a55481dc0e237c2bb2a75d3e
diff --git a/emulators/dosbox/patches/patch-aa b/emulators/dosbox/patches/patch-aa
new file mode 100644
index 00000000000..cce56d3b0f9
--- /dev/null
+++ b/emulators/dosbox/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2004/10/06 00:09:23 wiz Exp $
+
+--- src/dos/cdrom_image.cpp.orig 2004-08-23 11:35:15.000000000 +0200
++++ src/dos/cdrom_image.cpp
+@@ -111,7 +111,7 @@ int CDROM_Interface_Image::AudioFile::ge
+ while (true) {
+ int success = Sound_Seek(sample, (unsigned int)(shift + time));
+ if (!success) {
+- if (time == 1) return lround((double)shift * 176.4f);
++ if (time == 1) return rint((double)shift * 176.4f);
+ shift += time >> 1;
+ time = 1;
+ } else {