• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Fix build failure with +quartz variant on OS X 10.8 and 10.9.
2Even though Gestalt was deprecated in OS X 10.8, it should work fine
3through OS X 10.9, and its replacement NSOperatingSystemVersion was
4not introduced until OS X 10.10.
5
6Patch from MacPorts project and reported upstream:
7https://trac.macports.org/ticket/55649
8--- tk8.6.8/macosx/tkMacOSXXStubs.c.orig	2017-12-06 09:25:08.000000000 -0600
9+++ tk8.6.8-patched/macosx/tkMacOSXXStubs.c	2018-01-06 19:34:17.000000000 -0600
10@@ -175,7 +175,7 @@
11     {
12 	int major, minor, patch;
13
14-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
15+#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
16 	Gestalt(gestaltSystemVersionMajor, (SInt32*)&major);
17 	Gestalt(gestaltSystemVersionMinor, (SInt32*)&minor);
18 	Gestalt(gestaltSystemVersionBugFix, (SInt32*)&patch);
19