From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/protobuf/files: protobuf-2.5.0-x32.patch |
Date: | Sat, 30 Nov 2013 22:50:29 |
Message-Id: | 20131130225023.7A2F02004B@flycatcher.gentoo.org |
1 | vapier 13/11/30 22:50:23 |
2 | |
3 | Added: protobuf-2.5.0-x32.patch |
4 | Log: |
5 | Fix builds on x32. |
6 | |
7 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/protobuf/files/protobuf-2.5.0-x32.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/files/protobuf-2.5.0-x32.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/files/protobuf-2.5.0-x32.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: protobuf-2.5.0-x32.patch |
16 | =================================================================== |
17 | fix from upstream for building w/x32 |
18 | |
19 | https://code.google.com/p/protobuf/issues/detail?id=474 |
20 | |
21 | --- src/google/protobuf/stubs/atomicops.h (revision 491) |
22 | +++ src/google/protobuf/stubs/atomicops.h (revision 492) |
23 | @@ -66,7 +66,7 @@ typedef int32 Atomic32; |
24 | #ifdef GOOGLE_PROTOBUF_ARCH_64_BIT |
25 | // We need to be able to go between Atomic64 and AtomicWord implicitly. This |
26 | // means Atomic64 and AtomicWord should be the same type on 64-bit. |
27 | -#if defined(GOOGLE_PROTOBUF_OS_NACL) |
28 | +#if defined(__ILP32__) || defined(GOOGLE_PROTOBUF_OS_NACL) |
29 | // NaCl's intptr_t is not actually 64-bits on 64-bit! |
30 | // http://code.google.com/p/nativeclient/issues/detail?id=1162 |
31 | typedef int64 Atomic64; |