Hi here a little fix proposal for this platform.

Cheers.
From 6cfa1fce839504e04584d1bfedee188bc21c32b1 Mon Sep 17 00:00:00 2001
From: DC <[email protected]>
Date: Sat, 4 Sep 2021 09:58:57 +0100
Subject: [PATCH] BUILD/MINOR: dragonfly build fix.

build failure since __read_mostly is undefined.
---
 include/haproxy/compiler.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/haproxy/compiler.h b/include/haproxy/compiler.h
index ca3b844c1..435f7a28f 100644
--- a/include/haproxy/compiler.h
+++ b/include/haproxy/compiler.h
@@ -91,6 +91,8 @@
 /* use this attribute on a variable to move it to the read_mostly section */
 #if !defined(__DragonFly__)
 #define __read_mostly           HA_SECTION("read_mostly")
+#else
+#define __read_mostly
 #endif
 
 /* This allows gcc to know that some locations are never reached, for example
-- 
2.31.1

Reply via email to