mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
time: Add missing include for memset
(From OE-Core rev: e858993c6106f851ef001ddbaf3980d6ffeed18a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 15 Aug 2022 07:24:24 -0700
|
||||
Subject: [PATCH] include string.h for memset()
|
||||
|
||||
Fixes implicit function declaration warning e.g.
|
||||
|
||||
resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'
|
||||
|
||||
Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/resuse.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/resuse.c b/src/resuse.c
|
||||
index cf5a08c..9d3d18a 100644
|
||||
--- a/src/resuse.c
|
||||
+++ b/src/resuse.c
|
||||
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
+#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/resource.h>
|
||||
@@ -13,7 +13,9 @@ ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz"
|
||||
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
|
||||
file://0001-include-string.h-for-memset.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
|
||||
SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e"
|
||||
|
||||
Reference in New Issue
Block a user