1--- configure.orig	2019-03-23 15:41:07.000000000 -0400
2+++ configure	2019-03-23 15:57:05.000000000 -0400
3@@ -11490,7 +11490,7 @@
4 for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
5  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
6  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
7- futimens futimes gai_strerror getentropy \
8+ futimes gai_strerror \
9  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
10  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
11  if_nameindex \
12@@ -11507,7 +11507,7 @@
13  sigaction sigaltstack siginterrupt sigpending sigrelse \
14  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
15  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16- truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
17+ truncate uname unlinkat unsetenv utimes waitid waitpid wait3 wait4 \
18  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
19 do :
20   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21@@ -11520,6 +11520,22 @@
22 fi
23 done
24
25+if test "`uname -s`" != "Darwin"
26+then
27+  # checks for other library functions
28+  for ac_func in futimens getentropy utimensat
29+  do :
30+    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31+  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32+  if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33+    cat >>confdefs.h <<_ACEOF
34+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35+_ACEOF
36+
37+  fi
38+  done
39+fi
40+
41
42 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
43 # links. Some libc implementations have a stub lchmod implementation that always
44@@ -12726,7 +12742,8 @@
45 fi
46 done
47
48-
49+if test "`uname -s`" != "Darwin"
50+then
51 for ac_func in clock_gettime
52 do :
53   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
54@@ -12787,8 +12804,9 @@
55
56 fi
57 done
58-
59-
60+fi
61+if test "`uname -s`" != "Darwin"
62+then
63 for ac_func in clock_getres
64 do :
65   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
66@@ -12845,8 +12863,11 @@
67
68 fi
69 done
70+fi
71
72
73+if test "`uname -s`" != "Darwin"
74+then
75 for ac_func in clock_settime
76 do :
77   ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
78@@ -12903,6 +12924,7 @@
79
80 fi
81 done
82+fi
83
84
85 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
86--- setup.py.orig	2019-03-23 15:34:53.000000000 -0400
87+++ setup.py	2019-03-23 15:40:39.000000000 -0400
88@@ -1772,7 +1772,7 @@
89                         include_dirs = include_dirs,
90                         libraries = [],
91                         extra_compile_args = frameworks[2:],
92-                        extra_link_args = frameworks,
93+                        extra_link_args = ['-F/Library/Frameworks', '-F/System/Library/Frameworks'] + frameworks,
94                         )
95         self.extensions.append(ext)
96         return 1
97