opnsense-ports/devel/electron27/files/patch-base_atomicops.h
Franco Fichtner f253cd830b */*: sync with upstream
Taken from: FreeBSD
2023-12-11 11:32:56 +01:00

14 lines
429 B
C

--- base/atomicops.h.orig 2023-03-30 00:33:38 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;