Skip to content

Commit

Permalink
utils.c: fix compatibility for macOS < 12 (#9217)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Fedorov <[email protected]>
  • Loading branch information
barracuda156 authored Aug 27, 2024
1 parent b59e1e9 commit e8b5eee
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 e8b5eee

Please sign in to comment.