diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-02-13 13:04:18 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-15 10:21:35 +0000 |
commit | 0e8fcf8b51e2412682b4aba3af07f9548cb3135f (patch) | |
tree | 46197eea177edf4482161abc2c7285368403a264 /meta | |
parent | 02100e6b2098b738f4d0d95677bf153f8ef4a60b (diff) | |
download | poky-0e8fcf8b51e2412682b4aba3af07f9548cb3135f.tar.gz |
stress-ng: Add missing header files for clock_adjtime
(From OE-Core rev: 216e5b0e450c7b3f6f096c2892256e1bc1ec4781)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch | 32 | ||||
-rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch new file mode 100644 index 0000000000..87d2ead46a --- /dev/null +++ b/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 57f207ec7fb39c8b502f40dbdabd568f6b866a82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 13 Feb 2023 12:18:08 -0800 | ||
4 | Subject: [PATCH] Include sys/futex.h for clock_adjtime | ||
5 | |||
6 | Fixes | ||
7 | core-shim.c:1942:9: error: call to undeclared function 'clock_adjtime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/261] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | core-shim.c | 4 ++++ | ||
13 | 1 file changed, 4 insertions(+) | ||
14 | |||
15 | diff --git a/core-shim.c b/core-shim.c | ||
16 | index dc539c64..de38e908 100644 | ||
17 | --- a/core-shim.c | ||
18 | +++ b/core-shim.c | ||
19 | @@ -66,6 +66,10 @@ UNEXPECTED | ||
20 | #include <sys/prctl.h> | ||
21 | #endif | ||
22 | |||
23 | +#if defined(HAVE_SYS_TIMEX_H) | ||
24 | +#include <sys/timex.h> | ||
25 | +#endif | ||
26 | + | ||
27 | #if defined(HAVE_SYS_RANDOM_H) | ||
28 | #include <sys/random.h> | ||
29 | #endif | ||
30 | -- | ||
31 | 2.39.1 | ||
32 | |||
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb b/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb index 13a8b49f70..cd7f41a016 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
7 | 7 | ||
8 | SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ | 8 | SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ |
9 | file://0001-test-float-Make-variables-global.patch \ | 9 | file://0001-test-float-Make-variables-global.patch \ |
10 | file://0001-Include-sys-futex.h-for-clock_adjtime.patch \ | ||
10 | file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch" | 11 | file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch" |
11 | SRCREV = "f3be0447c10fd5652b4c3753d56bcaac13fd8917" | 12 | SRCREV = "f3be0447c10fd5652b4c3753d56bcaac13fd8917" |
12 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |