That makes sense - I have only built it on Mojave (10.14.6) and Catalina 
(10.15.3), which both have SYS_TIMEX and CLOCK_GETTIME.

The reason for failure is CLOCK_GETTIME was introduced in 10.12 and SYS_TIMEX 
not until 10.13, hence the need for <dlfcn.h> in 10.12

Sorry about that.

> On 17/03/2020, at 4:35 PM, David Bohman <deboh...@gmail.com> wrote:
> 
> 4.0-pre1 does not build on my macOS Sierra system. The following patch fixes 
> it:
> 
> diff --git a/sys_macosx.c b/sys_macosx.c
> index 701c078..1b0fc4e 100644
> --- a/sys_macosx.c
> +++ b/sys_macosx.c
> @@ -46,8 +46,9 @@
>  #include "privops.h"
>  #include "util.h"
>  
> -#ifdef HAVE_MACOS_SYS_TIMEX
>  #include <dlfcn.h>
> +
> +#ifdef HAVE_MACOS_SYS_TIMEX
>  #include "sys_netbsd.h"
>  
>  static int have_ntp_adjtime = 0;
> 
> On Mon, Mar 16, 2020 at 9:38 AM Miroslav Lichvar <mlich...@redhat.com> wrote:
> The first prerelease for chrony-4.0 is now available.
>  

Bryan Christianson
br...@whatroute.net




--
To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to