15 lines
480 B
C
15 lines
480 B
C
$NetBSD: patch-libguile_stime.c,v 1.1 2016/10/19 14:56:17 adam Exp $
|
|
|
|
Fix building on Darwin.
|
|
|
|
--- libguile/stime.c.orig 2016-10-19 07:55:02.000000000 +0000
|
|
+++ libguile/stime.c
|
|
@@ -828,7 +828,7 @@ scm_init_stime()
|
|
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_CLOCK_GETCPUCLOCKID)
|
|
{
|
|
clockid_t dummy;
|
|
|