Yes, I agree. It did not build for me, either.

refclock_sock.c:64:32: error: function-like macro '__GLIBC_PREREQ' is
not defined
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 34) && __TIMESIZE == 32
                               ^
1 error generated.
gcc -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4
-Wmissing-prototypes -Wall -pthread -I/usr/local/include
-I/usr/local/include -c refclock_sock.c
refclock_sock.c:64:32: error: function-like macro '__GLIBC_PREREQ' is
not defined
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 34) && __TIMESIZE == 32
                               ^
1 error generated.
make: *** [Makefile:107: refclock_sock.o] Error 1
% gcc --version
clang version 15.0.7
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /usr/local/bin

On Wed, Jan 18, 2023 at 9:14 AM Bryan Christianson <br...@whatroute.net> wrote:
>
> Hi Miroslav
>
> This change does not compile on macOS.
>
> refclock_sock.c:64:32: error: function-like macro '__GLIBC_PREREQ' is not 
> defined
> #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 34) && __TIMESIZE == 32
>                                ^
>
> gcc --version
> Apple clang version 14.0.0 (clang-1400.0.29.202)
> Target: x86_64-apple-darwin22.2.0
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> Regards, Bryan
>
> >
> > - Log -----------------------------------------------------------------
> > commit badaa83c319ae5a0bef872d1e7a55bf1260c1b84
> > Author: Miroslav Lichvar <mlich...@redhat.com>
> > Date:   Wed Jan 18 16:14:10 2023 +0100
> >
> >    refclock: convert mismatched timeval in SOCK messages
> >
>
> 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.
>

-- 
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