[gtk-osx] Patch stime to prevent attempting to use clock_getcpuclockid, not supported in MacOS.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Patch stime to prevent attempting to use clock_getcpuclockid, not supported in MacOS.
- Date: Thu, 16 Mar 2017 21:26:21 +0000 (UTC)
commit 52898977f165777ad9ef169f7d4818f2d4c9b731
Author: John Ralls <jralls ceridwen us>
Date: Thu Mar 16 14:25:59 2017 -0700
Patch stime to prevent attempting to use clock_getcpuclockid, not supported in MacOS.
modulesets-stable/gtk-osx-random.modules | 1 +
patches/guile-clocktime.patch | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/modulesets-stable/gtk-osx-random.modules b/modulesets-stable/gtk-osx-random.modules
index 3c7f9e5..3df7ad0 100644
--- a/modulesets-stable/gtk-osx-random.modules
+++ b/modulesets-stable/gtk-osx-random.modules
@@ -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 --git a/patches/guile-clocktime.patch b/patches/guile-clocktime.patch
new file mode 100644
index 0000000..f86b590
--- /dev/null
+++ b/patches/guile-clocktime.patch
@@ -0,0 +1,14 @@
+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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]