diff options
Diffstat (limited to 'mail/thunderbird45/patches/patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h')
-rw-r--r-- | mail/thunderbird45/patches/patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/thunderbird45/patches/patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h b/mail/thunderbird45/patches/patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h new file mode 100644 index 00000000000..87cc0bd4d77 --- /dev/null +++ b/mail/thunderbird45/patches/patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h @@ -0,0 +1,20 @@ +$NetBSD: patch-mozilla_toolkit_components_protobuf_src_google_protobuf_stubs_atomicops.h,v 1.1 2017/04/27 13:38:19 ryoon Exp $ + +--- mozilla/toolkit/components/protobuf/src/google/protobuf/stubs/atomicops.h.orig 2016-04-07 21:33:32.000000000 +0000 ++++ mozilla/toolkit/components/protobuf/src/google/protobuf/stubs/atomicops.h +@@ -76,9 +76,15 @@ typedef intptr_t Atomic64; + #endif + #endif + ++#if defined(__NetBSD__) && defined(__arm__) ++// NetBSD/arm uses long for intptr_t, which fails -fpermissive checks. So ++// explicitly use int32 here instead. ++typedef int32 AtomicWord; ++#else + // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or + // Atomic64 routines below, depending on your architecture. + typedef intptr_t AtomicWord; ++#endif + + // Atomically execute: + // result = *ptr; |