From 4e2ab71dfe2b1869ec41a3db1fe79387ff46a0fe Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 16 Feb 2022 13:13:00 -0600 Subject: [PATCH] Avoid missing-prototypes errors in this file --- shared/libc/string0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/libc/string0.c b/shared/libc/string0.c index 0d22c2d99b..86e7cc5960 100644 --- a/shared/libc/string0.c +++ b/shared/libc/string0.c @@ -26,6 +26,7 @@ #include #include +#include #ifndef likely #define likely(x) __builtin_expect((x), 1) @@ -68,6 +69,7 @@ void *memcpy(void *dst, const void *src, size_t n) { return dst; } +extern void *__memcpy_chk(void *dest, const void *src, size_t len, size_t slen); void *__memcpy_chk(void *dest, const void *src, size_t len, size_t slen) { if (len > slen) { return NULL;