Update version requirements for the Mac

Only require major + minor for the Mac pre macOS 11, otherwise only
a major version is fine.

Bug: chromium:1409095
Change-Id: Iafe0d19d567bd8dcf846b1d9cdcd6b5e324dbb1a
diff --git a/output/outmacho.c b/output/outmacho.c
index d1568a7..1a185ae 100644
--- a/output/outmacho.c
+++ b/output/outmacho.c
@@ -2469,8 +2469,13 @@
 
     unsigned short major = 0, minor = 0, subminor = 0;
     int count = sscanf(version, "%hu.%hu.%hu", &major, &minor, &subminor);
-    /* at least major and minor must be given */
-    if (count < 2) {
+    if (count < 1) {
+        nasm_free((char *)platform_ver);
+        return false;
+    }
+
+    /* Pre-macOS 11 at least major and minor must be given */
+    if (platform == PLATFORM_MACOS && major < 11 && count < 2) {
         nasm_free((char *)platform_ver);
         return false;
     }