pkgsrc/emulators/xm7/patches/patch-ad

27 lines
668 B
Text

$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