mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
4a25988c2e
PR: ports/121609 Submitted by: Richard Neese <r.neese@gmail.com> Approved by: maintainer timeout (sobomax; 20 days)
26 lines
461 B
C
26 lines
461 B
C
|
|
$FreeBSD$
|
|
|
|
--- src/audio/au_sun.c.orig
|
|
+++ src/audio/au_sun.c
|
|
@@ -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)
|
|
{
|