17 lines
545 B
Plaintext
17 lines
545 B
Plaintext
$NetBSD: patch-ad,v 1.4 2014/04/16 11:21:32 wiz Exp $
|
|
|
|
--- src/atomic_ops.h.orig 2013-11-10 09:57:12.000000000 +0000
|
|
+++ src/atomic_ops.h
|
|
@@ -351,7 +351,10 @@
|
|
# endif
|
|
#endif
|
|
|
|
-#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \
|
|
+#if defined(__SUNPRO_C) && defined(__i386)
|
|
+# include "atomic_ops/sysdeps/generic_pthread.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
|