summaryrefslogtreecommitdiff
path: root/time/emiclock/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'time/emiclock/patches/patch-aa')
-rw-r--r--time/emiclock/patches/patch-aa47
1 files changed, 47 insertions, 0 deletions
diff --git a/time/emiclock/patches/patch-aa b/time/emiclock/patches/patch-aa
new file mode 100644
index 00000000000..af715b8beba
--- /dev/null
+++ b/time/emiclock/patches/patch-aa
@@ -0,0 +1,47 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $
+
+--- include/sound.h.orig Sat Jan 11 12:12:55 1997
++++ include/sound.h Sun May 23 10:48:03 1999
+@@ -237,6 +237,42 @@
+
+ #endif /* FreeBSD */
+
++/*
++ * NetBSD
++ */
++
++#if defined(__NetBSD__) && defined(USE_SOUND)
++
++/* NetBSD with MB6258V */
++
++#include <errno.h>
++#include <unistd.h>
++#include <sys/ioctl.h>
++#include <sys/types.h>
++#include <sys/file.h>
++#include <sys/stat.h>
++#include <sys/audioio.h>
++#include <machine/bswap.h>
++
++#define AUDIO_DEVICE "/dev/audio"
++#define AUDIO_CTLDEVICE "/dev/audioctl"
++#define AUDIOMAGICNUMBER (0x2e736e64) /* ".snd" */
++#ifndef AUDIO_ENCODING_LINEAR
++#define AUDIO_ENCODING_LINEAR (3) /* Linear PCM encoding */
++#endif
++
++#undef O_RDWR
++#define O_RDWR O_WRONLY /* audio $B%G%P%$%9$OF1;~%*!<%W%s$G$-$J$$!)(B */
++
++struct SoundCacheBufferTag {
++ char *soundCacheBuffer;
++ int soundLength;
++ audio_info_t soundBParam;
++};
++
++#define SoundCacheBuffer struct SoundCacheBufferTag
++
++#endif /* NetBSD */
+
+ #else /* USE_NETAUDIO */
+