summaryrefslogtreecommitdiff
path: root/www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h
blob: 7a91af25f2a44dd7793c70168eaac1676358fcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h,v 1.1 2017/04/27 01:55:57 ryoon Exp $

* Support Solaris

--- toolkit/components/protobuf/src/google/protobuf/stubs/platform_macros.h.orig	2015-09-11 00:23:02.000000000 +0000
+++ toolkit/components/protobuf/src/google/protobuf/stubs/platform_macros.h
@@ -67,7 +67,7 @@
 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
 #elif defined(sparc)
 #define GOOGLE_PROTOBUF_ARCH_SPARC 1
-#ifdef SOLARIS_64BIT_ENABLED
+#if (defined(sun) && defined(SOLARIS_64BIT_ENABLED)) || __LP64__
 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
 #else
 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1