summaryrefslogtreecommitdiff
path: root/audio/akode/patches/patch-ab
blob: 9b8adb213b26ff40453f5b04ac94b908735d4114 (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
25
26
27
28
29
30
$NetBSD: patch-ab,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $

--- akode/plugins/sun_sink/sun_sink.cpp.orig	2008-12-06 21:32:50 +0200
+++ akode/plugins/sun_sink/sun_sink.cpp	2008-12-06 21:39:31 +0200
@@ -20,13 +20,14 @@
 
 #include <config.h>
 
+#include <sys/types.h>
+#include <sys/ioctl.h>
 #include <sys/audioio.h>
 
-#include <sys/ioctl.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <string.h>
 #include <unistd.h>
-#include <alloca.h>
 
 #include <audioframe.h>
 #include "sun_sink.h"
@@ -97,7 +98,7 @@ int SunSink::setAudioConfiguration(const
 {
     d->config = *config;
 
-    AUDIO_INITINFO(&d->auinfo)
+    AUDIO_INITINFO(&d->auinfo);
 
     if (ioctl(d->audio_fd, AUDIO_GETINFO, &d->auinfo) < 0)
     {