mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 10:59:14 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/3d5581ff-d388-11ed-8581-a8a1599412c6.html Differential Revision: https://reviews.freebsd.org/D39432
14 lines
429 B
C
14 lines
429 B
C
--- base/atomicops.h.orig 2023-04-05 11:05:06 UTC
|
|
+++ base/atomicops.h
|
|
@@ -71,7 +71,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;
|