16 lines
526 B
Plaintext
16 lines
526 B
Plaintext
$OpenBSD: patch-base_atomicops_h,v 1.3 2011/03/15 11:38:05 robert Exp $
|
|
--- base/atomicops.h.orig Fri Mar 11 10:01:33 2011
|
|
+++ base/atomicops.h Mon Mar 14 10:55:37 2011
|
|
@@ -54,7 +54,11 @@ typedef intptr_t Atomic64;
|
|
|
|
// Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
|
|
// Atomic64 routines below, depending on your architecture.
|
|
+#if defined(OS_OPENBSD) && defined(__i386__)
|
|
+typedef Atomic32 AtomicWord;
|
|
+#else
|
|
typedef intptr_t AtomicWord;
|
|
+#endif
|
|
|
|
// Atomically execute:
|
|
// result = *ptr;
|