Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / fl / fluent-bit / macos-11-sdk-compat.patch
blob5063e028e6564fad941e01faca8a1ae71aba5496
1 diff --git i/src/flb_utils.c w/src/flb_utils.c
2 index 87637f1331d7..7a0036566438 100644
3 --- i/src/flb_utils.c
4 +++ w/src/flb_utils.c
5 @@ -1424,11 +1424,11 @@ int flb_utils_get_machine_id(char **out_id, size_t *out_size)
6 return 0;
8 #elif defined (FLB_SYSTEM_MACOS)
9 bool bret;
10 CFStringRef serialNumber;
11 - io_service_t platformExpert = IOServiceGetMatchingService(kIOMainPortDefault,
12 + io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,
13 IOServiceMatching("IOPlatformExpertDevice"));
15 if (platformExpert) {
16 CFTypeRef serialNumberAsCFString =
17 IORegistryEntryCreateCFProperty(platformExpert,