summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-08-02 21:14:56 +0200
committerKhem Raj <raj.khem@gmail.com>2023-08-02 23:45:27 +0200
commite6456caf7676329abe861e9381f1957794baeabc (patch)
tree51ced9f8f2febb28401f8ab02da1482e56d8d73b
parentMerge pull request #28640 from medhefgo/boot-count (diff)
downloadsystemd-e6456caf7676329abe861e9381f1957794baeabc.tar.xz
systemd-e6456caf7676329abe861e9381f1957794baeabc.zip
test/test-sizeof: Include sys/timex.h for struct timex
Fixes ../git/src/test/test-sizeof.c:64:41: error: incomplete definition of type 'struct timex' 64 | check(typeof(((struct timex *)0)->freq), SIZEOF_TIMEX_MEMBER); | ~~~~~~~~~~~~~~~~~~~^
-rw-r--r--src/test/test-sizeof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c
index 18378b0450..ea0c58770e 100644
--- a/src/test/test-sizeof.c
+++ b/src/test/test-sizeof.c
@@ -5,6 +5,7 @@
#include <string.h>
#include <sys/resource.h>
#include <sys/socket.h>
+#include <sys/timex.h>
#include <sys/types.h>
#define __STDC_WANT_IEC_60559_TYPES_EXT__