]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix dragonfly build again on __read_mostly
authordevnexen@gmail.com <devnexen@gmail.com>
Sat, 4 Sep 2021 08:58:57 +0000 (09:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 17:46:29 +0000 (19:46 +0200)
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

index ca3b844c15d71ff40e5b520a810345618591a4eb..1f0c40db91f70bc5d5fb958dd8a2ee0824be904e 100644 (file)
@@ -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