From cac75dceb5a31883f21b2ef86917e8359143f840 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Wed, 13 Mar 2024 14:24:17 +0100 Subject: [PATCH] network: restored patch I accidentally removed Signed-off-by: Leonardo Alminana --- src/flb_network.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/flb_network.c b/src/flb_network.c index 627608764fd..d183209fd52 100644 --- a/src/flb_network.c +++ b/src/flb_network.c @@ -49,6 +49,14 @@ #include #include +#ifdef FLB_SYSTEM_MACOS +#ifdef _GNU_SOURCE +#undef _GNU_SOURCE +#endif +/* Use POSIX version of strerror_r forcibly on macOS. */ +#include +#endif + #ifndef SOL_TCP #define SOL_TCP IPPROTO_TCP #endif