summaryrefslogtreecommitdiff
path: root/audio/jack/patches/patch-aa
blob: 521e57f24b268463d69bf780d47f638af7aafa94 (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
$NetBSD: patch-aa,v 1.2 2008/07/31 03:58:05 bjs Exp $

--- config/sysdeps/atomicity.h.orig	2008-07-27 08:50:27.000000000 -0400
+++ config/sysdeps/atomicity.h
@@ -1,7 +1,11 @@
 #ifndef _jack_sysdep_atomicity_h_
 #define _jack_sysdep_atomicity_h_
 
-#if defined(__i386__)
+#if defined(HAVE_NETBSD_ATOMIC_OPS)
+
+#include <config/os/netbsd/atomicity.h>
+
+#elif defined(__i386__)
 
 #include <config/cpu/i386/atomicity.h>
 
@@ -15,6 +19,10 @@
 
 #include <config/cpu/powerpc/atomicity.h>
 
+#elif defined(__mips__) || defined(__mips64__)
+
+#include <config/cpu/mips/atomicity.h>
+
 #else
 
 #include <config/cpu/generic/atomicity.h>