From ac5f634cb1e08efd927f904979cdff38d0afb081 Mon Sep 17 00:00:00 2001 From: "devnexen@gmail.com" Date: Sat, 4 Sep 2021 09:58:57 +0100 Subject: [PATCH] BUILD: fix dragonfly build again on __read_mostly It looks like some versions define it and others not. Better rely on the macro itself rather than checking for a particular OS. --- include/haproxy/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/compiler.h b/include/haproxy/compiler.h index ca3b844c1..1f0c40db9 100644 --- a/include/haproxy/compiler.h +++ b/include/haproxy/compiler.h @@ -89,7 +89,7 @@ #endif // USE_OBSOLETE_LINKER /* use this attribute on a variable to move it to the read_mostly section */ -#if !defined(__DragonFly__) +#if !defined(__read_mostly) #define __read_mostly HA_SECTION("read_mostly") #endif