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-ah,v 1.2 2008/01/12 23:30:38 bad Exp $
--- platforms/unix/vm/sqUnixMain.c.orig 2006-10-10 20:38:14.000000000 -0600
+++ platforms/unix/vm/sqUnixMain.c
@@ -63,7 +63,7 @@
#include <signal.h>
#include <fcntl.h>
-#if defined(__alpha__)
+#if defined(__alpha__) && !defined(__NetBSD__)
# include <sys/sysinfo.h>
# include <sys/proc.h>
#endif
@@ -685,6 +685,7 @@ static struct moduleDescription moduleDe
/* defaults */
{ &displayModule, "display", "Quartz" },
{ &soundModule, "sound", "MacOSX" },
+ { &soundModule, "sound", "NetBSD" },
{ &soundModule, "sound", "Sun" },
{ &soundModule, "sound", "ALSA" },
{ &soundModule, "sound", "null" },
@@ -1306,7 +1307,7 @@ int main(int argc, char **argv, char **e
signal(SIGSEGV, sigsegv);
-#if defined(__alpha__)
+#if defined(__alpha__) && !defined(__NetBSD__)
/* disable printing of unaligned access exceptions */
{
int buf[2]= { SSIN_UACPROC, UAC_NOPRINT };
|