[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/04: Fix scm_init_stime for macOS
From: |
Andy Wingo |
Subject: |
[Guile-commits] 04/04: Fix scm_init_stime for macOS |
Date: |
Sun, 8 Jan 2017 22:50:31 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 2976abdbbbf4274dd4aabf12b50a1bea49882078
Author: Andy Wingo <address@hidden>
Date: Sun Jan 8 23:45:58 2017 +0100
Fix scm_init_stime for macOS
* libguile/stime.c (scm_init_stime): Remove needless test of
clock_getcpuclockid. Fixes build on macOS; thanks to Matt Wette for
the report and fix.
---
libguile/stime.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libguile/stime.c b/libguile/stime.c
index 4f35766..5ca2034 100644
--- a/libguile/stime.c
+++ b/libguile/stime.c
@@ -833,10 +833,7 @@ scm_init_stime()
{
clockid_t dummy;
- /* Only use the _POSIX_CPUTIME clock if it's going to work across
- CPUs. */
- if (clock_getcpuclockid (0, &dummy) == 0 &&
- clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0)
+ if (clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0)
get_internal_run_time = get_internal_run_time_posix_timer;
else
errno = 0;