diff --git a/irc/hexchat/Portfile b/irc/hexchat/Portfile
index 14e4bb8..c6575d4 100644
a
|
b
|
depends_build-append \ |
57 | 57 | # directory.) |
58 | 58 | configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include |
59 | 59 | |
| 60 | patchfiles patch-use-Gestalt-on-10.9-and-lower.diff |
| 61 | |
60 | 62 | configure.args --disable-dependency-tracking \ |
61 | 63 | --enable-minimal-flags \ |
62 | 64 | --disable-python \ |
diff --git a/irc/hexchat/files/patch-use-Gestalt-on-10.9-and-lower.diff b/irc/hexchat/files/patch-use-Gestalt-on-10.9-and-lower.diff
new file mode 100644
index 0000000..3e80c66
-
|
+
|
|
| 1 | --- plugins/sysinfo/osx/backend.m.old |
| 2 | +++ plugins/sysinfo/osx/backend.m |
| 3 | @@ -78,10 +78,22 @@ get_os (void) |
| 4 | static char * |
| 5 | get_os_fallback (void) |
| 6 | { |
| 7 | +#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_9 |
| 8 | + SInt32 ver_major = 0, |
| 9 | + ver_minor = 0, |
| 10 | + ver_patch = 0; |
| 11 | + |
| 12 | + Gestalt (gestaltSystemVersionMajor, &ver_major); |
| 13 | + Gestalt (gestaltSystemVersionMinor, &ver_minor); |
| 14 | + Gestalt (gestaltSystemVersionBugFix, &ver_patch); |
| 15 | + |
| 16 | + return g_strdup_printf ("OS X %d.%d.%d", ver_major, ver_minor, ver_patch); |
| 17 | +#else |
| 18 | NSProcessInfo *info = [NSProcessInfo processInfo]; |
| 19 | NSOperatingSystemVersion version = [info operatingSystemVersion]; |
| 20 | |
| 21 | return g_strdup_printf ("OS X %ld.%ld.%ld", version.majorVersion, version.minorVersion, version.patchVersion); |
| 22 | +#endif |
| 23 | } |
| 24 | char * |
| 25 | sysinfo_backend_get_os(void) |