Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835302
Bug-Upstream: https://github.com/google/protobuf/issues/2002
Origin: https://github.com/ibmruntimes/v8z
Based on port of Google V8 JavaScript engine to z Systems
Gbp-Pq: Name s390x.patch
#elif defined(__PPC__)
#define GOOGLE_PROTOBUF_ARCH_PPC 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+#elif defined(__s390__) || defined(__s390x__)
+#define GOOGLE_PROTOBUF_ARCH_S390 1
+#if defined(__s390x__)
+#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
+#else
+#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+#endif
#elif defined(__GNUC__)
# if (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4))
// We fallback to the generic Clang/GCC >= 4.7 implementation in atomicops.h