summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch')
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch32
1 files changed, 32 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 @@
1From 57f207ec7fb39c8b502f40dbdabd568f6b866a82 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Feb 2023 12:18:08 -0800
4Subject: [PATCH] Include sys/futex.h for clock_adjtime
5
6Fixes
7core-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
9Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/261]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 core-shim.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/core-shim.c b/core-shim.c
16index 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--
312.39.1
32