blob: f2130c856f9d1db42f5fe92df6556df5c78d6066 [file] [log] [blame]
Patrick Williams2a254922023-08-11 09:48:11 -05001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 2 Aug 2023 12:14:56 -0700
4Subject: [PATCH] test/test-sizeof: Include sys/timex.h for struct timex
5
6Fixes
7
8../git/src/test/test-sizeof.c:64:41: error: incomplete definition of type 'struct timex'
9 64 | check(typeof(((struct timex *)0)->freq), SIZEOF_TIMEX_MEMBER);
10 | ~~~~~~~~~~~~~~~~~~~^
11
12Upstream-Status: Backport [https://github.com/systemd/systemd/pull/28651]
13---
14 src/test/test-sizeof.c | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c
18index 9d969cf8f1..b65c0bd370 100644
19--- a/src/test/test-sizeof.c
20+++ b/src/test/test-sizeof.c
21@@ -4,6 +4,7 @@
22 #include <string.h>
23 #include <sys/resource.h>
24 #include <sys/socket.h>
25+#include <sys/timex.h>
26 #include <sys/types.h>
27
28 #define __STDC_WANT_IEC_60559_TYPES_EXT__