From ee2296addec5a76b99c8eb7769fc78fa71ea2ddd Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Sat, 24 Mar 2012 23:14:32 -0300 Subject: [PATCH] Fixes for OpenBSD Signed-off-by: Claudio Matsuoka --- src/sound_sndio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sound_sndio.c b/src/sound_sndio.c index eeef5d5..9458248 100644 --- a/src/sound_sndio.c +++ b/src/sound_sndio.c @@ -14,6 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include #include #include #include @@ -24,7 +25,6 @@ static struct sio_hdl *hdl; static int init(int *rate, int *format) { struct sio_par par, askpar; - struct xmp_options *opt = &ctx->o; hdl = sio_open(NULL, SIO_PLAY, 0); if (hdl == NULL) { @@ -82,7 +82,7 @@ static void deinit() hdl = NULL; } -static void play(void *b, int len) +static void play(void *buf, int len) { if (b != NULL) { sio_write(hdl, buf, len); @@ -106,7 +106,7 @@ struct sound_driver sound_sndio = { "OpenBSD sndio", NULL, init, - deint, + deinit, play, flush, onpause,