summaryrefslogtreecommitdiff
path: root/www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h')
-rw-r--r--www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h b/www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h
new file mode 100644
index 00000000000..7a91af25f2a
--- /dev/null
+++ b/www/firefox52/patches/patch-toolkit_components_protobuf_src_google_protobuf_stubs_platform__macros.h
@@ -0,0 +1,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