Skip to content

Commit

Permalink
utils: fix compatibility for macOS < 12 (fluent#9217)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Fedorov <[email protected]>
  • Loading branch information
barracuda156 authored and edsiper committed Aug 27, 2024
1 parent b59e1e9 commit 36c46b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/flb_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ extern struct flb_aws_error_reporter *error_reporter;
#ifdef FLB_SYSTEM_MACOS
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED < 120000
#define kIOMainPortDefault kIOMasterPortDefault
#endif
#endif

/*
Expand Down

0 comments on commit 36c46b7

Please sign in to comment.