File 0678-Add-missing-attribute-to-debug-variable.patch of Package erlang

From 15076741791d8d890d66a95b9aef950153e6e879 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Muska=C5=82a?= <michal@muskala.eu>
Date: Fri, 24 May 2019 20:59:06 +0200
Subject: [PATCH] Add missing attribute to debug variable

Without this I wasn't able to compile the debug emulator, the compilation
would fail with "section attribute is specified on redeclared variable" errors.
---
 erts/emulator/beam/erl_sched_spec_pre_alloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/emulator/beam/erl_sched_spec_pre_alloc.h b/erts/emulator/beam/erl_sched_spec_pre_alloc.h
index 74cc966cbe..6f715ae80d 100644
--- a/erts/emulator/beam/erl_sched_spec_pre_alloc.h
+++ b/erts/emulator/beam/erl_sched_spec_pre_alloc.h
@@ -49,7 +49,7 @@ do {									\
 #endif
 
 #ifdef DEBUG
-extern Uint erts_no_schedulers;
+extern Uint ERTS_WRITE_UNLIKELY(erts_no_schedulers);
 #endif
 
 #define ERTS_SSPA_FORCE_THR_CHECK_PROGRESS 10
-- 
2.16.4

openSUSE Build Service is sponsored by