summaryrefslogtreecommitdiff
path: root/emulators/dosbox/patches/patch-aa
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-10-06 00:09:23 +0000
committerwiz <wiz@pkgsrc.org>2004-10-06 00:09:23 +0000
commit3225ebe6147ff2b6b64738a5d66e1fb270f8aba3 (patch)
tree4eb10239370a555d35e2d727df3415801ea423bf /emulators/dosbox/patches/patch-aa
parent1dfcc92e5fe0f19eb64e22845cdff61f16bb41b2 (diff)
downloadpkgsrc-3225ebe6147ff2b6b64738a5d66e1fb270f8aba3.tar.gz
Use rint instead of lround to make it build on 2.0.
Diffstat (limited to 'emulators/dosbox/patches/patch-aa')
-rw-r--r--emulators/dosbox/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
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 {