openbsd-ports/audio/flite/patches/patch-src_audio_au_sun_c

24 lines
576 B
Plaintext

$OpenBSD: patch-src_audio_au_sun_c,v 1.1.1.1 2003/04/23 05:33:19 jason 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)
{