summaryrefslogtreecommitdiff
path: root/emulators/xm7
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-12-10 11:48:54 +0000
committerjperkin <jperkin@pkgsrc.org>2013-12-10 11:48:54 +0000
commitc3d32c4644d9aa94744547f8cb5ae3ee41be0744 (patch)
treea7166d9e021c9a0a22cb70ecb891b629ca6e8572 /emulators/xm7
parent1a5b72da4a1c48ad9da015b2ec6fac13baaea7fe (diff)
downloadpkgsrc-c3d32c4644d9aa94744547f8cb5ae3ee41be0744.tar.gz
Fix build on SunOS. Patch from Sebastian Wiedenroth.
Diffstat (limited to 'emulators/xm7')
-rw-r--r--emulators/xm7/distinfo4
-rw-r--r--emulators/xm7/patches/patch-ad18
2 files changed, 16 insertions, 6 deletions
diff --git a/emulators/xm7/distinfo b/emulators/xm7/distinfo
index 70ec7f9aa6d..2926d011545 100644
--- a/emulators/xm7/distinfo
+++ b/emulators/xm7/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2012/06/23 19:32:00 dholland Exp $
+$NetBSD: distinfo,v 1.15 2013/12/10 11:48:54 jperkin Exp $
SHA1 (xm71020s.zip) = 9a222f210de4d1107a966f4b739e3cb498504ece
RMD160 (xm71020s.zip) = c65938b33081a7563dc13b0265b6f849ba4929e9
@@ -6,5 +6,5 @@ Size (xm71020s.zip) = 289896 bytes
SHA1 (patch-aa) = b49f4dac3dde6395fcf1d4ab0c987d577e5e9ce4
SHA1 (patch-ab) = 4e6cc9113e25eca32a1f672b82b3c07ed141a5b7
SHA1 (patch-ac) = 5a2dd19976d117651860d7ee5b83afe762050001
-SHA1 (patch-ad) = d92ce48806c57a8cf0447f3e647202709e9a63d3
+SHA1 (patch-ad) = 9b0a2187b1af22a743ffdf2caceaed5fac40df89
SHA1 (patch-ae) = ee3a92da9301db4aca1b9eff7b4850f17334345c
diff --git a/emulators/xm7/patches/patch-ad b/emulators/xm7/patches/patch-ad
index 805c4ba7354..d415cf3134c 100644
--- a/emulators/xm7/patches/patch-ad
+++ b/emulators/xm7/patches/patch-ad
@@ -1,14 +1,24 @@
-$NetBSD: patch-ad,v 1.2 2006/01/12 21:05:19 joerg Exp $
+$NetBSD: patch-ad,v 1.3 2013/12/10 11:48:55 jperkin Exp $
---- xw_snd.cpp.orig 2000-03-22 16:01:00.000000000 +0000
+Fix includes on SunOS.
+
+--- xw_snd.cpp.orig 2001-03-22 16:02:00.000000000 +0000
+++ xw_snd.cpp
-@@ -22,8 +22,10 @@
+@@ -8,6 +8,7 @@
+ #include <assert.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include "xm7.h"
+ #include "opn.h"
+ #include "device.h"
+@@ -22,8 +23,10 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
-#ifdef __FreeBSD__
-#include <machine/soundcard.h>
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun)
+#include <sys/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>