openbsd-ports/www/chromium/patches/patch-base_atomicops_h
espie 5cb978edde cut the "monster patches" into small pieces. pval can fix it to his liking
if he comes back.
In the mean time, fix build of chromium by adding the required
-I/usr/local/includes to gyp glue where needed.
2010-12-13 09:51:45 +00:00

16 lines
525 B
Plaintext

$OpenBSD: patch-base_atomicops_h,v 1.1 2010/12/13 09:51:45 espie Exp $
--- base/atomicops.h.orig Tue Mar 30 07:28:45 2010
+++ base/atomicops.h Sun Nov 28 00:11:30 2010
@@ -47,7 +47,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;