mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUILD: atomic: atomic.h may need compiler.h on ARMv8.2-a
We get a build error in ncbuf.c when building for ARMv8.2-a because ncbuf has minimal includes and among them bug.h which includes atomic.h. Atomic.h may use "forceinline" without including compiler.h, hence the build error. It was verified that adding it doesn't inflate the total headers. Since all other C files include api.h which already covers this, there's no real need to bapkport this. The issue was already there in 2.3 though.
This commit is contained in:
parent
57c3e75d4e
commit
5ab3c61932
@ -23,6 +23,8 @@
|
||||
#ifndef _HAPROXY_ATOMIC_H
|
||||
#define _HAPROXY_ATOMIC_H
|
||||
|
||||
#include <haproxy/compiler.h>
|
||||
|
||||
/* A few notes for the macros and functions here:
|
||||
* - this file is painful to edit, most operations exist in 3 variants,
|
||||
* no-thread, threads with gcc<4.7, threads with gcc>=4.7. Be careful when
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user