All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] time: Add missing include for memset
@ 2022-08-16  3:30 Khem Raj
  2022-08-16  3:30 ` [PATCH 2/6] screen: Add missing include files in configure checks Khem Raj
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Khem Raj @ 2022-08-16  3:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../0001-include-string.h-for-memset.patch    | 27 +++++++++++++++++++
 meta/recipes-extended/time/time_1.9.bb        |  4 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch

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 00000000000..f6ea212667e
--- /dev/null
+++ b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch
@@ -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>
diff --git a/meta/recipes-extended/time/time_1.9.bb b/meta/recipes-extended/time/time_1.9.bb
index 706605fe065..8364210e61c 100644
--- a/meta/recipes-extended/time/time_1.9.bb
+++ b/meta/recipes-extended/time/time_1.9.bb
@@ -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"
-- 
2.37.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-08-17 14:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16  3:30 [PATCH 1/6] time: Add missing include for memset Khem Raj
2022-08-16  3:30 ` [PATCH 2/6] screen: Add missing include files in configure checks Khem Raj
2022-08-16  3:30 ` [PATCH 3/6] setserial: Fix build with clang Khem Raj
2022-08-16  3:30 ` [PATCH 4/6] expect: Fix implicit-function-declaration warnings Khem Raj
2022-08-16  3:30 ` [PATCH 5/6] spirv-tools,spirv-headers: Update to 1.3.224.0 Khem Raj
2022-08-16  7:39   ` [OE-core] " Alexander Kanavin
2022-08-16 14:59     ` Khem Raj
2022-08-16 15:04       ` Alexander Kanavin
2022-08-16  3:30 ` [PATCH v2 6/6] xmlto: Update to use upstream tip of trunk Khem Raj
2022-08-17 14:31   ` [OE-core] " Richard Purdie
     [not found]   ` <170C2857622947BA.6839@lists.openembedded.org>
2022-08-17 14:38     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.