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.
This commit is contained in:
devnexen@gmail.com 2021-09-04 09:58:57 +01:00 committed by Willy Tarreau
parent 55f8a830dc
commit ac5f634cb1

View File

@ -89,7 +89,7 @@
#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__) #if !defined(__read_mostly)
#define __read_mostly HA_SECTION("read_mostly") #define __read_mostly HA_SECTION("read_mostly")
#endif #endif