16 lines
565 B
Text
16 lines
565 B
Text
$NetBSD: patch-ad,v 1.3 2011/10/04 18:15:30 bsiegert Exp $
|
|
|
|
--- src/atomic_ops.h.orig 2010-09-15 19:18:33.000000000 +0000
|
|
+++ src/atomic_ops.h
|
|
@@ -325,7 +325,10 @@
|
|
# endif /* __x86_64 */
|
|
#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
|