From 36c46b790f613b0ac60ebea66b4e3ea57418db9c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 27 Aug 2024 15:17:54 +0000 Subject: [PATCH] utils: fix compatibility for macOS < 12 (#9217) Signed-off-by: Sergey Fedorov --- src/flb_utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flb_utils.c b/src/flb_utils.c index 7c287de05e4..37e89d28a4f 100644 --- a/src/flb_utils.c +++ b/src/flb_utils.c @@ -49,6 +49,10 @@ extern struct flb_aws_error_reporter *error_reporter; #ifdef FLB_SYSTEM_MACOS #include #include +#include +#if MAC_OS_X_VERSION_MIN_REQUIRED < 120000 +#define kIOMainPortDefault kIOMasterPortDefault +#endif #endif /*