From 99a65bfe59208c33a74718ef5fc05e255a76393a Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 21 May 2025 06:19:46 -0300 Subject: [PATCH] vxworks: libgcc: include string.h for memset gthr-vxworks-thread.c calls memset in __ghtread_cond_signal, but it fails ot include , where this function is declared, and GCC 14 rejects calls of undeclared functions. Include the required header. for libgcc/ChangeLog * config/gthr-vxworks-thread.c: Include string.h for memset. --- libgcc/config/gthr-vxworks-thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgcc/config/gthr-vxworks-thread.c b/libgcc/config/gthr-vxworks-thread.c index 17c60faba48..31f291aca67 100644 --- a/libgcc/config/gthr-vxworks-thread.c +++ b/libgcc/config/gthr-vxworks-thread.c @@ -33,6 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include #include +#include #define __TIMESPEC_TO_NSEC(timespec) \ ((long long)timespec.tv_sec * 1000000000 + (long long)timespec.tv_nsec) -- 2.47.2