mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUILD: compiler: do not use already defined __read_mostly on dragonfly
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.
This commit is contained in:
parent
29202013c1
commit
d272b409d7
@ -89,7 +89,9 @@
|
|||||||
#endif // USE_OBSOLETE_LINKER
|
#endif // USE_OBSOLETE_LINKER
|
||||||
|
|
||||||
/* use this attribute on a variable to move it to the read_mostly section */
|
/* use this attribute on a variable to move it to the read_mostly section */
|
||||||
|
#if !defined(__DragonFly__)
|
||||||
#define __read_mostly HA_SECTION("read_mostly")
|
#define __read_mostly HA_SECTION("read_mostly")
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This allows gcc to know that some locations are never reached, for example
|
/* 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
|
* after a longjmp() in the Lua code, hence that some errors caught by such
|
||||||
|
Loading…
Reference in New Issue
Block a user