[dart:io] unbreak build

Change-Id: Ia8965e62f4b89a80aeb6db1489ca45c6db321adc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102640
Reviewed-by: Régis Crelier <regis@google.com>
Auto-Submit: Dan Field <dnfield@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
diff --git a/runtime/bin/security_context_macos.cc b/runtime/bin/security_context_macos.cc
index a9afb58..024f1ad 100644
--- a/runtime/bin/security_context_macos.cc
+++ b/runtime/bin/security_context_macos.cc
@@ -86,8 +86,10 @@
   if (length < 0) {
     return NULL;
   }
-  auto deb_cert = std::make_unique<unsigned char[]>(length);
-  auto temp = deb_cert.get();
+  // This can be `std::make_unique<unsigned char[]>(length)` in C++14
+  // But the Mac toolchain is still using C++11.
+  auto deb_cert = std::unique_ptr<unsigned char[]>(new unsigned char[length]);
+  unsigned char* temp = deb_cert.get();
   if (i2d_X509(cert, &temp) != length) {
     return NULL;
   }