1From 5ab3c61932af7619518169da744ba6346f060405 Mon Sep 17 00:00:00 2001 2From: Willy Tarreau <w@1wt.eu> 3Date: Thu, 8 Dec 2022 08:32:57 +0100 4Subject: [PATCH] BUILD: atomic: atomic.h may need compiler.h on ARMv8.2-a 5 6We get a build error in ncbuf.c when building for ARMv8.2-a because ncbuf 7has minimal includes and among them bug.h which includes atomic.h. Atomic.h 8may use "forceinline" without including compiler.h, hence the build error. 9It was verified that adding it doesn't inflate the total headers. 10 11Since all other C files include api.h which already covers this, there's 12no real need to bapkport this. The issue was already there in 2.3 though. 13 14Upstream: https://git.haproxy.org/?p=haproxy.git;a=commitdiff;h=5ab3c61932af7619518169da744ba6346f060405#patch1 15 16Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 17--- 18 include/haproxy/atomic.h | 2 ++ 19 1 file changed, 2 insertions(+) 20 21diff --git a/include/haproxy/atomic.h b/include/haproxy/atomic.h 22index f60be95..7e3c826 100644 23--- a/include/haproxy/atomic.h 24+++ b/include/haproxy/atomic.h 25@@ -23,6 +23,8 @@ 26 #ifndef _HAPROXY_ATOMIC_H 27 #define _HAPROXY_ATOMIC_H 28 29+#include <haproxy/compiler.h> 30+ 31 /* A few notes for the macros and functions here: 32 * - this file is painful to edit, most operations exist in 3 variants, 33 * no-thread, threads with gcc<4.7, threads with gcc>=4.7. Be careful when 34-- 351.7.10.4 36 37