summaryrefslogtreecommitdiff
path: root/emulators/xm7/patches/patch-ad
blob: d415cf3134c5f2ed9dc3a63aa3aecf1ece2244f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ad,v 1.3 2013/12/10 11:48:55 jperkin Exp $

Fix includes on SunOS.

--- xw_snd.cpp.orig	2001-03-22 16:02:00.000000000 +0000
+++ xw_snd.cpp
@@ -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__) || defined(__sun)
+#include <sys/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>
 #else
 #include <linux/soundcard.h>
 #endif