depot/third_party/nixpkgs/pkgs/tools/misc/fluent-bit/macos-11-sdk-compat.patch
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

17 lines
680 B
Diff

diff --git i/src/flb_utils.c w/src/flb_utils.c
index 87637f1331d7..7a0036566438 100644
--- i/src/flb_utils.c
+++ w/src/flb_utils.c
@@ -1424,11 +1424,11 @@ int flb_utils_get_machine_id(char **out_id, size_t *out_size)
return 0;
}
#elif defined (FLB_SYSTEM_MACOS)
bool bret;
CFStringRef serialNumber;
- io_service_t platformExpert = IOServiceGetMatchingService(kIOMainPortDefault,
+ io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,
IOServiceMatching("IOPlatformExpertDevice"));
if (platformExpert) {
CFTypeRef serialNumberAsCFString =
IORegistryEntryCreateCFProperty(platformExpert,