]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: compiler: do not use already defined __read_mostly on dragonfly
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Apr 2021 14:35:13 +0000 (16:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Apr 2021 15:16:36 +0000 (17:16 +0200)
DragonflyBSD already has an attribute __read_mostly which serves the
same purpose as the one in compiler.h.

No need to be backported as it was added in the current 2.4-dev.

include/haproxy/compiler.h

index 72557674c434e3a7584f558f0580a9c0c8d65947..72d158b37e1eef76ecdb74bb3d6793589f3fba9a 100644 (file)
@@ -89,7 +89,9 @@
 #endif // USE_OBSOLETE_LINKER
 
 /* use this attribute on a variable to move it to the read_mostly section */
+#if !defined(__DragonFly__)
 #define __read_mostly           HA_SECTION("read_mostly")
+#endif
 
 /* This allows gcc to know that some locations are never reached, for example
  * after a longjmp() in the Lua code, hence that some errors caught by such