summaryrefslogtreecommitdiff
path: root/games/xdigger/files/patch-ab
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-07-12 23:08:56 +0000
committerSteve Price <steve@FreeBSD.org>1998-07-12 23:08:56 +0000
commit93e071172dce49bb69c28a1a19edc5cfd6b9505c (patch)
treeb2192b751b38d0c195149406faef06cc31de3728 /games/xdigger/files/patch-ab
parentTurn on coolmail. (diff)
Initial import of xdigger version 1.0.6.
Boulderdash-like KC85 Digger for X Window System. PR: 7149 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=11862
Diffstat (limited to 'games/xdigger/files/patch-ab')
-rw-r--r--games/xdigger/files/patch-ab57
1 files changed, 57 insertions, 0 deletions
diff --git a/games/xdigger/files/patch-ab b/games/xdigger/files/patch-ab
new file mode 100644
index 000000000000..b16ec0eed71d
--- /dev/null
+++ b/games/xdigger/files/patch-ab
@@ -0,0 +1,57 @@
+--- sound.c Thu Jan 1 00:06:00 1998
++++ /home/andy/tmp/wrk/sound.c Sat Jun 29 23:19:09 1996
+@@ -39,6 +39,9 @@
+ #ifdef linux
+ #include <linux/soundcard.h>
+ #endif
++#ifdef __FreeBSD__
++#include <machine/soundcard.h>
++#endif
+ #ifdef SOUND_RPLAY
+ #include <rplay.h>
+ #endif
+@@ -147,7 +150,7 @@
+ {
+ ton_typ = msgp.mtext[0];
+ #endif
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if (sound_device == SD_DSP)
+ {
+ int rate = TON_DSP_RATE;
+@@ -171,7 +174,7 @@
+ else
+ done = True;
+ }
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if(sound_device == SD_DSP)
+ ioctl(fd, SNDCTL_DSP_RESET, 0);
+ #endif
+@@ -248,7 +251,7 @@
+
+ } /* Fill_TonBuffer(int ton_low, int ton_high, int korrektur, Bool sndheader)*/
+
+-#ifdef linux
++#if ( defined(linux) || defined (__FreeBSD__) )
+ Bool Check_DSP(Bool msg)
+ {
+ int fd;
+@@ -374,7 +377,7 @@
+ {
+ if (debug) fprintf(stderr, "%s: XDisplay is on localhost\n", progname);
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ Check_DSP(False);
+ #endif
+ if (sound_device == SD_AUTO) Check_SUN_Audio(False);
+@@ -400,7 +403,7 @@
+ else
+ {
+ #ifdef SOUND_DSP_AUDIO
+-#ifdef linux
++#if ( defined(linux) || defined(__FreeBSD__) )
+ if (sound_device == SD_DSP)
+ {
+ if (!Check_DSP(True)) sound_device = SD_NONE;