Hi,

here a little patch for haiku system.

cheers.
From 575cdb49b8fa923bdd44fe08a7068681e38ffe71 Mon Sep 17 00:00:00 2001
From: David Carlier <[email protected]>
Date: Tue, 25 Jan 2022 10:37:59 +0000
Subject: [PATCH] BUILD/MINOR: debug haiku build fix.

O_ASYNC fcntl flag equivalent on this platform is O_RSYNC.
---
 src/debug.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/debug.c b/src/debug.c
index c15c92650..bd6353846 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -25,6 +25,9 @@
 #ifdef USE_EPOLL
 #include <sys/epoll.h>
 #endif
+#ifdef __HAIKU__
+#define O_ASYNC O_RSYNC
+#endif
 
 #include <haproxy/api.h>
 #include <haproxy/buf.h>
-- 
2.30.2

Reply via email to