blob: b67d773c34cdfbfe9a309b5d29d835730fb45816 (
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
|
$NetBSD: patch-ag,v 1.3 2000/12/15 03:24:18 garbled Exp $
--- Sources/Core/Sound/ClanSound/oss.cpp.orig Thu Dec 14 18:47:17 2000
+++ Sources/Core/Sound/ClanSound/oss.cpp Thu Dec 14 18:52:47 2000
@@ -12,7 +12,11 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef __NetBSD__
+#include <soundcard.h>
+#else
#include <sys/soundcard.h>
+#endif
#include <iostream>
#include <API/Core/System/error.h>
@@ -29,7 +33,11 @@
CL_CSOutput::CL_CSOutput()
{
+#ifdef __NetBSD__
+ dev_dsp_fd = open("/dev/sound", O_WRONLY);
+#else
dev_dsp_fd = open("/dev/dsp", O_WRONLY);
+#endif
if (dev_dsp_fd == -1)
{
has_sound = false;
|