blob: 28637201fe6b7ec509c57c60f7bbe64d327776f4 (
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
|
$NetBSD: patch-ae,v 1.1 2007/07/08 18:33:38 minskim Exp $
--- src/audio/au_sun.c.orig Mon Jan 7 18:25:52 2002
+++ src/audio/au_sun.c Sun Apr 20 18:12:34 2003
@@ -45,6 +45,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include <sys/ioctl.h>
#include <sys/filio.h>
#include <sys/audioio.h>
#include "cst_string.h"
@@ -76,7 +77,11 @@ cst_audiodev *audio_open_sun(int sps, in
cst_error();
}
}
+#ifdef __OpenBSD__
+ AUDIO_INITINFO(&ainfo);
+#else
ioctl(fd,AUDIO_GETINFO,&ainfo);
+#endif
switch (fmt)
{
|