blob: 58b45f7f3f64a08440144403ea7e4611a235a4ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-bc,v 1.3 2000/04/27 14:44:23 mycroft Exp $
--- sun_a.c.orig Mon May 20 09:09:47 1996
+++ sun_a.c Thu Apr 27 10:37:28 2000
@@ -28,12 +28,13 @@
*/
#include <unistd.h>
+#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__NetBSD__)
#include <sys/audioio.h>
#else
#include <sun/audioio.h>
@@ -81,7 +82,7 @@
/* Open the audio device */
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__NetBSD__)
fd=open(dpm.name, O_RDWR );
#else
fd=open(dpm.name, O_RDWR | O_NDELAY);
|