File 0182-Fix-AIX-weirdness-woth-section-attribute-by-not-usin.patch of Package erlang

From d8b4e8f55c4ada9f2fe1b6088126e8d3e6c7147b Mon Sep 17 00:00:00 2001
From: Calvin Buckley <calvin@cmpct.info>
Date: Fri, 25 Jan 2019 07:56:31 -0500
Subject: [PATCH 02/12] Fix AIX weirdness woth section attribute by not using
 it

I suspect XCOFF shenanigans.
---
 erts/emulator/beam/sys.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index acc321aa51..db07512cf7 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -178,7 +178,8 @@ typedef ERTS_SYS_FD_TYPE ErtsSysFdType;
 #  define ERTS_UNLIKELY(BOOL) (BOOL)
 #endif
 
-#if ERTS_AT_LEAST_GCC_VSN__(2, 96, 0)
+/* AIX doesn't like this and claims section conflicts */
+#if ERTS_AT_LEAST_GCC_VSN__(2, 96, 0) && !defined(_AIX)
 #if (defined(__APPLE__) && defined(__MACH__)) || defined(__DARWIN__)
 #  define ERTS_WRITE_UNLIKELY(X) X __attribute__ ((section ("__DATA,ERTS_LOW_WRITE") ))
 #else
-- 
2.16.4

openSUSE Build Service is sponsored by