aboutsummaryrefslogtreecommitdiff
path: root/audio/ossaudio.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 10:07:55 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-02 10:07:55 +0000
commitf0c757e431fa48248a411dc07dea98ce9be6a537 (patch)
tree8df2c634085e3deb6bb9ac15ffbff4b1db298c48 /audio/ossaudio.c
parentb0ee3ff06e54a30b1540c08507b873a00192aa0e (diff)
audio/ossaudio.c for OpenBSD, by Todd T. Fries.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2583 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/ossaudio.c')
-rw-r--r--audio/ossaudio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 125e4c8ff7..cedcea45ff 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
@@ -21,10 +21,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#include <stdlib.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
#include <sys/soundcard.h>
+#endif
#include "vl.h"
#define AUDIO_CAP "oss"