From 10b0bc476b37dfa506a464da925419b0b06c5341 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 7 Jul 2025 12:40:11 +0900 Subject: [PATCH] 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. --- src/test/test-sizeof.c | 1 + src/timesync/timesyncd-manager.c | 1 + 2 files changed, 2 insertions(+) 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" -- 2.47.3