diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0026-test-test-sizeof-Include-sys-timex.h-for-struct-time.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0026-test-test-sizeof-Include-sys-timex.h-for-struct-time.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0026-test-test-sizeof-Include-sys-timex.h-for-struct-time.patch b/meta/recipes-core/systemd/systemd/0026-test-test-sizeof-Include-sys-timex.h-for-struct-time.patch new file mode 100644 index 0000000000..f2130c856f --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0026-test-test-sizeof-Include-sys-timex.h-for-struct-time.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 2 Aug 2023 12:14:56 -0700 | ||
4 | Subject: [PATCH] test/test-sizeof: Include sys/timex.h for struct timex | ||
5 | |||
6 | Fixes | ||
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 | |||
12 | Upstream-Status: Backport [https://github.com/systemd/systemd/pull/28651] | ||
13 | --- | ||
14 | src/test/test-sizeof.c | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c | ||
18 | index 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__ | ||