Path: blob/main/Mac/BuildScript/tk868_on_10_8_10_9.patch
12 views
Fix build failure with +quartz variant on OS X 10.8 and 10.9.1Even though Gestalt was deprecated in OS X 10.8, it should work fine2through OS X 10.9, and its replacement NSOperatingSystemVersion was3not introduced until OS X 10.10.45Patch from MacPorts project and reported upstream:6https://trac.macports.org/ticket/556497--- tk8.6.8/macosx/tkMacOSXXStubs.c.orig 2017-12-06 09:25:08.000000000 -06008+++ tk8.6.8-patched/macosx/tkMacOSXXStubs.c 2018-01-06 19:34:17.000000000 -06009@@ -175,7 +175,7 @@10{11int major, minor, patch;1213-#if MAC_OS_X_VERSION_MIN_REQUIRED < 108014+#if MAC_OS_X_VERSION_MIN_REQUIRED < 10100015Gestalt(gestaltSystemVersionMajor, (SInt32*)&major);16Gestalt(gestaltSystemVersionMinor, (SInt32*)&minor);17Gestalt(gestaltSystemVersionBugFix, (SInt32*)&patch);181920