summaryrefslogtreecommitdiff
path: root/games/nighthawk/patches/patch-bb
diff options
context:
space:
mode:
Diffstat (limited to 'games/nighthawk/patches/patch-bb')
-rw-r--r--games/nighthawk/patches/patch-bb21
1 files changed, 13 insertions, 8 deletions
diff --git a/games/nighthawk/patches/patch-bb b/games/nighthawk/patches/patch-bb
index 72506a4927c..b8e4ac7df04 100644
--- a/games/nighthawk/patches/patch-bb
+++ b/games/nighthawk/patches/patch-bb
@@ -1,17 +1,22 @@
-$NetBSD: patch-bb,v 1.3 2005/06/07 05:33:20 minskim Exp $
+$NetBSD: patch-bb,v 1.4 2006/01/13 00:13:54 joerg Exp $
--- src_sound/dsp_mixxer.c.orig 1998-06-22 05:41:31.000000000 -0500
+++ src_sound/dsp_mixxer.c
-@@ -23,6 +23,8 @@
+@@ -19,10 +19,10 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+-#ifdef Linux
++#if defined(Linux) || defined( FreeBSD) || defined(__DragonFly__)
#include <sys/soundcard.h>
- #elif FreeBSD
- #include <machine/soundcard.h>
+-#elif FreeBSD
+- #include <machine/soundcard.h>
+#elif defined(__NetBSD__)
+ #include <soundcard.h>
#endif
#include "funktracker_defs.h"
#include "funktracker.h"
-@@ -91,7 +93,7 @@ void init_dsp_buffers(void)
+@@ -91,7 +91,7 @@ void init_dsp_buffers(void)
register int x;
calc_mix_buffer(funk_info.bpm_rate);
@@ -20,7 +25,7 @@ $NetBSD: patch-bb,v 1.3 2005/06/07 05:33:20 minskim Exp $
for(x = 0;x < mix_buffer_size;x++)
{
*(left_mix_buffer + x) = 0;
-@@ -187,7 +189,7 @@ void close_dsp(void)
+@@ -187,7 +187,7 @@ void close_dsp(void)
{
if(dsp_fp != -1)
{
@@ -29,7 +34,7 @@ $NetBSD: patch-bb,v 1.3 2005/06/07 05:33:20 minskim Exp $
close(dsp_fp);
}
}
-@@ -247,12 +249,12 @@ int open_dsp(int srate,int prec,int st)
+@@ -247,12 +247,12 @@ int open_dsp(int srate,int prec,int st)
if(dsp_alloc_bufs())
{
printf("Allocated dsp buffers..\n");
@@ -44,7 +49,7 @@ $NetBSD: patch-bb,v 1.3 2005/06/07 05:33:20 minskim Exp $
funk_info.precision,
funk_info.stereo == 8 ? "mono" : "stereo",
funk_info.sampling_rate,
-@@ -265,7 +267,7 @@ int open_dsp(int srate,int prec,int st)
+@@ -265,7 +265,7 @@ int open_dsp(int srate,int prec,int st)
return 1;
}
else