summaryrefslogtreecommitdiff
path: root/devel/libatomic_ops/patches/patch-ad
blob: 8696544a2aab16e478f97868ed3776c8947fa244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ad,v 1.1 2009/01/26 15:01:56 sketch Exp $

--- src/atomic_ops.h.orig	Wed Oct 22 02:12:17 2008
+++ src/atomic_ops.h	Mon Jan 26 14:48:46 2009
@@ -251,7 +251,10 @@
 # endif
 #endif
 
-#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \
+#if defined(__SUNPRO_C) && defined(__i386)
+#   include "atomic_ops/sysdeps/sunc/x86.h"
+#   define AO_CAN_EMUL_CAS
+#elif !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \
     && !defined(AO_USE_PTHREAD_DEFS)
 #   include "atomic_ops/sysdeps/sunc/sparc.h"
 #   define AO_CAN_EMUL_CAS