On Wed 01 Mar 2017 21:28, Thomas Klausner <t...@giga.or.at> writes:

> Another pkgsrc patch concerns itself with supporting older Darwin
> releases, attached. Can you please merge it?
>  Thomas
>
> $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;
>      

I believe this was fixed in 2.1.6, so I think you can drop this one.

Andy



Reply via email to