diff options
Diffstat (limited to 'meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch')
-rw-r--r-- | meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch new file mode 100644 index 0000000000..f6ea212667 --- /dev/null +++ b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 15 Aug 2022 07:24:24 -0700 | ||
4 | Subject: [PATCH] include string.h for memset() | ||
5 | |||
6 | Fixes implicit function declaration warning e.g. | ||
7 | |||
8 | resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)' | ||
9 | |||
10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/resuse.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/resuse.c b/src/resuse.c | ||
17 | index cf5a08c..9d3d18a 100644 | ||
18 | --- a/src/resuse.c | ||
19 | +++ b/src/resuse.c | ||
20 | @@ -22,6 +22,7 @@ | ||
21 | */ | ||
22 | |||
23 | #include "config.h" | ||
24 | +#include <string.h> | ||
25 | #include <sys/time.h> | ||
26 | #include <sys/wait.h> | ||
27 | #include <sys/resource.h> | ||