Skip to content
Snippets Groups Projects
Commit e5cc456b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix macOS 12.0 SDK deprecation

parent d328598c
No related branches found
No related tags found
No related merge requests found
...@@ -394,7 +394,7 @@ std::string LLAppViewerMacOSX::generateSerialNumber() ...@@ -394,7 +394,7 @@ std::string LLAppViewerMacOSX::generateSerialNumber()
// JC: Sample code from http://developer.apple.com/technotes/tn/tn1103.html // JC: Sample code from http://developer.apple.com/technotes/tn/tn1103.html
CFStringRef serialNumber = NULL; CFStringRef serialNumber = NULL;
io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault, io_service_t platformExpert = IOServiceGetMatchingService(kIOMainPortDefault,
IOServiceMatching("IOPlatformExpertDevice")); IOServiceMatching("IOPlatformExpertDevice"));
if (platformExpert) if (platformExpert)
{ {
......
...@@ -350,7 +350,7 @@ bool LLWMIMethods::getGenericSerialNumber(const BSTR &select, const LPCWSTR &var ...@@ -350,7 +350,7 @@ bool LLWMIMethods::getGenericSerialNumber(const BSTR &select, const LPCWSTR &var
bool getSerialNumber(unsigned char *unique_id, size_t len) bool getSerialNumber(unsigned char *unique_id, size_t len)
{ {
CFStringRef serial_cf_str = NULL; CFStringRef serial_cf_str = NULL;
io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault, io_service_t platformExpert = IOServiceGetMatchingService(kIOMainPortDefault,
IOServiceMatching("IOPlatformExpertDevice")); IOServiceMatching("IOPlatformExpertDevice"));
if (platformExpert) if (platformExpert)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment