1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/audio/flite/files/patch-src-audio-au_sun.c
Pav Lucistnik 4a25988c2e - Update to 1.3
PR:		ports/121609
Submitted by:	Richard Neese <r.neese@gmail.com>
Approved by:	maintainer timeout (sobomax; 20 days)
2008-03-31 13:23:57 +00:00

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)
{