Commit 52898977 authored by John Ralls's avatar John Ralls
Browse files

Patch stime to prevent attempting to use clock_getcpuclockid, not supported in MacOS.

parent 0e4ab38c
......@@ -462,6 +462,7 @@ Libglade itself is deprecated. This is the last release. -->
<branch repo="ftp.gnu.org" module="guile/guile-2.0.12.tar.gz"
version="2.0.12">
<patch file="https://git.gnome.org/browse/gtk-osx/plain/patches/guild-shell.patch" strip="1"/>
<patch file="https://git.gnome.org/browse/gtk-osx/plain/patches/guile-clocktime.patch" strip="1"/>
</branch>
<dependencies>
<dep package="libunistring"/>
......
diff -c /Users/john/Development/Gnucash-Build/Gnucash-master-git/src/guile-2.0.12/libguile/stime.c\~ /Users/john/Development/Gnucash-Build/Gnucash-master-git/src/guile-2.0.12/libguile/stime.c
--- a/libguile/stime.c Mon Jul 11 09:19:59 2016
+++ b/libguile/stime.c Mon Mar 13 14:02:59 2017
@@ -828,7 +828,7 @@
if (clock_gettime (CLOCK_REALTIME, &posix_real_time_base) == 0)
get_internal_real_time = get_internal_real_time_posix_timer;
-#ifdef HAVE_POSIX_CPUTIME
+#if defined(HAVE_POSIX_CPUTIME) && defined(HAVE_CPU_CLOCKID)
{
clockid_t dummy;
Diff finished. Mon Mar 13 14:04:07 2017
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment