patch-src_atomicops_h 525 B

12345678910111213141516
  1. $OpenBSD: patch-src_atomicops_h,v 1.1 2012/12/05 01:07:45 abieber Exp $
  2. --- src/atomicops.h.orig Tue Dec 4 18:00:55 2012
  3. +++ src/atomicops.h Tue Dec 4 18:01:52 2012
  4. @@ -69,7 +69,11 @@ typedef intptr_t Atomic64;
  5. // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
  6. // Atomic64 routines below, depending on your architecture.
  7. +#if defined(__OpenBSD__) && defined(__i386__)
  8. +typedef Atomic32 AtomicWord;
  9. +#else
  10. typedef intptr_t AtomicWord;
  11. +#endif
  12. // Atomically execute:
  13. // result = *ptr;