Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-32-gbadaa83 |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.3-32-gbadaa83
- From: David Bohman <debohman@xxxxxxxxx>
- Date: Wed, 18 Jan 2023 18:49:15 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=CapAn6qd+rXzFD5yU3kaMyrLfiKsVnXbjc8yARkNHKM=; b=NCD4uObG7ddUnTU73BZmTTV+GJ1+wI+e59LSQcbjkjq2nre7L6I7Y8TwcrDOAPSuA+ e8t67cQPaCsiS0wbIODFCJDkHu0BCB2BwVGo0yqsPSg9J6miy6YjpbgcJa5kka+vCkD/ HNcWs3ZIG4NA9a+DDxCSn3pjELPcTm42Nz3vftxOuefx0XBsUzT4bZk83bIpY91OhC0F lu8UGf+R7vr3nwE3F3hayFee5zTry8dQFPJTEV7ajk1sA6Hd3EiCto3WWxLJkddyTmC8 XALAqN1ca+EJUmJkPAPZ3yBdM71X3plNvYxo87WWpYo2f8orsWKFV25vTw9CCnFWz+6p YJFA==
Here is a simple test along the lines of this issue:
#if 0
#define A(x) (x)
#endif
#if defined(A) && A(1)
one
#endif
Try running the preprocessor on it:
% clang -E test.c
# 1 "test.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 382 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test.c" 2
test.c:5:19: error: function-like macro 'A' is not defined
Try it on linux using gcc:
% cc -E test.c
# 0 "test.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "test.c"
test.c:5:20: error: missing binary operator before token "("
I think that this preprocessor scheme is flawed.
On Wed, Jan 18, 2023 at 9:14 AM Bryan Christianson <bryan@xxxxxxxxxxxxx> 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 <mlichvar@xxxxxxxxxx>
> > Date: Wed Jan 18 16:14:10 2023 +0100
> >
> > refclock: convert mismatched timeval in SOCK messages
> >
>
> Bryan Christianson
> bryan@xxxxxxxxxxxxx
>
>
>
>
> --
> To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
> For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
>
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.