summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-07-14 21:44:55 +0000
committerwiz <wiz@pkgsrc.org>2015-07-14 21:44:55 +0000
commita22bb3bccb609ad83edaff2e4a78d4cfb13c6f78 (patch)
treea8e62f78950558a5cb16c2e01fd14dff56720ea2 /emulators
parentc1518407fa139d7d887287b6a947ee3f6e90c55c (diff)
downloadpkgsrc-a22bb3bccb609ad83edaff2e4a78d4cfb13c6f78.tar.gz
Fix ftruncate. From startaq in
https://github.com/mamedev/mame/pull/257
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mame/distinfo4
-rw-r--r--emulators/mame/patches/patch-src_osd_osdmini_minifile.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/emulators/mame/distinfo b/emulators/mame/distinfo
index 3af741f020b..a0f2cca657d 100644
--- a/emulators/mame/distinfo
+++ b/emulators/mame/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2015/07/14 20:14:49 wiz Exp $
+$NetBSD: distinfo,v 1.37 2015/07/14 21:44:55 wiz Exp $
SHA1 (mame0163s.zip) = 14617c9d8a98d9f4c9709441b73285ad66f9b3c3
RMD160 (mame0163s.zip) = d115f68b9ab6bd4f869149fb011955e1c1d5bc16
@@ -10,4 +10,4 @@ SHA1 (patch-3rdparty_portmidi_porttime_ptlinux.c) = 3d7ac3eb870764ed8a9471270829
SHA1 (patch-makefile) = 48eeb6f119b0affb4614c9ff6a51933b4f0c08bf
SHA1 (patch-scripts_src_3rdparty.lua) = db85c6c50bdd456f8e8127b956f32df809b706be
SHA1 (patch-scripts_toolchain.lua) = 0b6b8708b5102b154a38872d2a3069f4061ca353
-SHA1 (patch-src_osd_osdmini_minifile.c) = d78d2b3badec7caa1c6aa3e8c335ea64f3e0c6c2
+SHA1 (patch-src_osd_osdmini_minifile.c) = c1ddef744ecaefc19d295fae7b015e0505a6f126
diff --git a/emulators/mame/patches/patch-src_osd_osdmini_minifile.c b/emulators/mame/patches/patch-src_osd_osdmini_minifile.c
index be5fed2ba4c..d4dbe660533 100644
--- a/emulators/mame/patches/patch-src_osd_osdmini_minifile.c
+++ b/emulators/mame/patches/patch-src_osd_osdmini_minifile.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_osd_osdmini_minifile.c,v 1.1 2015/07/14 20:14:49 wiz Exp $
+$NetBSD: patch-src_osd_osdmini_minifile.c,v 1.2 2015/07/14 21:44:55 wiz Exp $
Implement missing osd_truncate() function.
@@ -19,7 +19,7 @@ Implement missing osd_truncate() function.
+ return FILERR_FAILURE;
+
+ result = ftruncate(fileno((FILE *)file), offset);
-+ if (!result)
++ if (result)
+ return FILERR_FAILURE;
+
+ return FILERR_NONE;