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;