26 lines
578 B
Text
26 lines
578 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
|
|
|
|
diff -r -u -b sound.c.orig sound.c
|
|
--- sound.c.orig Thu Jan 6 07:23:56 2000
|
|
+++ sound.c Sat Jan 8 17:09:02 2000
|
|
@@ -5,7 +5,13 @@
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
+#ifdef __NetBSD__
|
|
+#include <soundcard.h>
|
|
+#define SOUNDDEV "/dev/sound"
|
|
+#else
|
|
#include <linux/soundcard.h>
|
|
+#define SOUNDDEV "/dev/dsp"
|
|
+#endif
|
|
#include <sys/time.h>
|
|
#include <signal.h>
|
|
#include <string.h>
|
|
@@ -14,7 +20,6 @@
|
|
#include "scav.h"
|
|
#include "sound.h"
|
|
|
|
-#define SOUNDDEV "/dev/dsp"
|
|
|
|
char dirlist[512];
|