]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: fix preprocessor conditional
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jan 2023 10:34:55 +0000 (11:34 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jan 2023 10:51:41 +0000 (11:51 +0100)
commit88e711ad9abe3a541863a78efaf8e1b6a143d129
tree2b4e711141e0b9e6457f5852305b8bc36ed6fc22
parentbadaa83c319ae5a0bef872d1e7a55bf1260c1b84
refclock: fix preprocessor conditional

Split the new SOCK conditional using __GLIBC_PREREQ macro (which has
arguments) to fix compilation when it is not defined.

Fix also debug message using sizeof(time_t) in case it's enabled on
64-bit systems.

Reported-by: Bryan Christianson <bryan@whatroute.net>
Fixes: badaa83c319a ("refclock: convert mismatched timeval in SOCK messages")
refclock_sock.c