From: Yu Watanabe Date: Mon, 7 Jul 2025 03:40:11 +0000 (+0900) Subject: timesync,test: explicitly include sys/timex.h when struct timex is used X-Git-Tag: v258-rc1~151^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F38100%2Fhead;p=thirdparty%2Fsystemd.git timesync,test: explicitly include sys/timex.h when struct timex is used struct timex is defined by sys/timex.h -> bits/timex.h. Glibc includes the header in time.h, but let's explicitly include it when the struct is used. Similar to 4f18ff2e29b8054f30b084abcabf5f689f4b340b, but for sys/timex.h. --- diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c index f4c9916f15d..075cc8c5a0c 100644 --- a/src/test/test-sizeof.c +++ b/src/test/test-sizeof.c @@ -7,6 +7,7 @@ #include #include #include +#include #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index 031793ea774..012b61d5130 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "sd-bus.h"