summaryrefslogtreecommitdiff
path: root/audio/arts/patches/patch-ac
blob: 6cb71258b4da45eeb2c9f74bce259fe48ae00ae4 (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
31
$NetBSD: patch-ac,v 1.4 2003/11/03 12:07:28 mrg Exp $

--- flow/cpuinfo.cc.orig	2003-07-14 05:33:37.000000000 +1000
+++ flow/cpuinfo.cc	2003-11-03 22:51:44.000000000 +1100
@@ -27,6 +27,10 @@
 #include <setjmp.h>
 #include <signal.h>
 
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#endif
+
 using namespace Arts;
 
 int CpuInfo::s_flags = 0;
@@ -204,6 +208,7 @@
 		: /* no input */
 		: "memory"
 	);
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 105260000
 	// SSE must be supported by the OS, if it's not, any SSE insn will
 	// trigger an invalid opcode exception, to check for this, a SIGILL
 	// handler is installed and a SSE insn run. If the handler is called,
@@ -226,6 +231,7 @@
 		}
 		signal(SIGILL, oldHandler);
 	}
+#endif
 #endif /* HAVE_X86_SSE */
 }