From: devnexen@gmail.com Date: Sat, 4 Sep 2021 08:58:57 +0000 (+0100) Subject: BUILD: fix dragonfly build again on __read_mostly X-Git-Tag: v2.5-dev7~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac5f634cb1e08efd927f904979cdff38d0afb081;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/compiler.h b/include/haproxy/compiler.h index ca3b844c15..1f0c40db91 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