--- src/_macosx.m.orig	2019-05-18 14:01:10.000000000 -0400
+++ src/_macosx.m	2019-05-21 09:49:01.000000000 -0400
@@ -1,6 +1,9 @@
 #define PY_SSIZE_T_CLEAN
 #include <Cocoa/Cocoa.h>
 #include <ApplicationServices/ApplicationServices.h>
+#ifndef kCTForegroundColorFromContextAttributeName
+extern const CFStringRef kCTForegroundColorFromContextAttributeName AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
+#endif
 #include <sys/socket.h>
 #include <Python.h>