aboutsummaryrefslogtreecommitdiffstats
path: root/devel/kxl/files
diff options
context:
space:
mode:
authornakai <nakai@FreeBSD.org>2001-06-16 18:33:59 +0800
committernakai <nakai@FreeBSD.org>2001-06-16 18:33:59 +0800
commit4597c76868946e7a300a72d9415cd7dca4169049 (patch)
treea71442aca4832d39d261f03255d5a12256465289 /devel/kxl/files
parent85a69bb7001c64e580eab364e76823e72729fbc8 (diff)
downloadfreebsd-ports-graphics-4597c76868946e7a300a72d9415cd7dca4169049.tar.gz
freebsd-ports-graphics-4597c76868946e7a300a72d9415cd7dca4169049.tar.zst
freebsd-ports-graphics-4597c76868946e7a300a72d9415cd7dca4169049.zip
Initial import.
a visual, sound game library.
Diffstat (limited to 'devel/kxl/files')
-rw-r--r--devel/kxl/files/patch-aa64
1 files changed, 64 insertions, 0 deletions
diff --git a/devel/kxl/files/patch-aa b/devel/kxl/files/patch-aa
new file mode 100644
index 00000000000..7ebdd5dc40e
--- /dev/null
+++ b/devel/kxl/files/patch-aa
@@ -0,0 +1,64 @@
+--- src/KXLsound.c.orig Thu May 17 18:08:13 2001
++++ src/KXLsound.c Sat Jun 16 19:31:43 2001
+@@ -3,7 +3,6 @@
+ #include <fcntl.h>
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+-#include <linux/soundcard.h>
+ #include "KXL.h"
+
+ #define MIN(a, b) ((a<b) ? a : b)
+@@ -45,12 +44,14 @@
+ ******************************************/
+ void KXL_SoundServer(void)
+ {
++#ifndef __FreeBSD__
+ Uint16 i;
+ KXL_SoundControl Command;
+ fd_set sound_fdset;
+
+ if (KXL_SoundOk == False)
+ return;
++
+
+ close(KXL_SoundData.Pipe[1]);
+ for (i = 0; i < MAX_SOUNDS_PLAYING; i ++)
+@@ -166,6 +167,7 @@
+ }
+ }
+ }
++#endif
+ }
+
+ /******************************************
+@@ -245,6 +247,7 @@
+ ******************************************/
+ void KXL_InitSound(Uint8 *path, Uint8 **fname)
+ {
++#ifndef __FreeBSD__
+ KXL_SoundOk = False;
+ KXL_LoadSoundData(path, fname);
+ if (pipe(KXL_SoundData.Pipe) < 0) {
+@@ -264,6 +267,7 @@
+ }
+ if (KXL_SoundOk == False)
+ fprintf(stderr, "KXL_InitSoundServer : no sounds\n");
++#endif
+ }
+
+ /******************************************
+@@ -271,6 +275,7 @@
+ ******************************************/
+ void KXL_EndSound(void)
+ {
++#ifndef __FreeBSD__
+ if (KXL_SoundOk == False)
+ return;
+ KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
+@@ -278,5 +283,6 @@
+ KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt]);
+ KXL_Free(KXL_wavelist);
+ kill(KXL_SoundData.ID, SIGTERM);
++#endif
+ }
+