From 8e5360ac38c02a011de5eba7852882a14caa8f75 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 27 Aug 2023 01:14:24 +0200 Subject: [PATCH] MacOsDeviceLister: Rename kIOMasterPortDefault to kIOMainPortDefault --- src/device/macosdevicelister.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/macosdevicelister.mm b/src/device/macosdevicelister.mm index 524a6e725..0a4701c83 100644 --- a/src/device/macosdevicelister.mm +++ b/src/device/macosdevicelister.mm @@ -155,7 +155,7 @@ bool MacOsDeviceLister::Init() { DASessionScheduleWithRunLoop(loop_session_, run_loop_, kCFRunLoopDefaultMode); // Register for USB device connection/disconnection. - IONotificationPortRef notification_port = IONotificationPortCreate(kIOMasterPortDefault); + IONotificationPortRef notification_port = IONotificationPortCreate(kIOMainPortDefault); CFMutableDictionaryRef matching_dict = IOServiceMatching(kIOUSBDeviceClassName); // IOServiceAddMatchingNotification decreases reference count. CFRetain(matching_dict);