basic: add a size check to format timex members properly
authorMike Gilbert <floppym@gentoo.org>
Mon, 20 Dec 2021 00:39:37 +0000 (19:39 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 18:40:09 +0000 (19:40 +0100)
commitbbc11135c296dbd7fbb6f4d40a0cdfd8ccf69c22
tree39632f92c69c6f42f37383fad0fc7f34aa989e42
parentd370601b430e24afb460393c29b12af38a04ac35
basic: add a size check to format timex members properly

As of glibc-2.34, the size of members in struct timex varies depending on
the _TIME_BITS macro.

Fixes: https://github.com/systemd/systemd/issues/21826
(cherry picked from commit 9a723ed6e80e3078969567f7cb551535d2fb00bd)
meson.build
src/basic/format-util.h