From: Alexandre Oliva Date: Wed, 21 May 2025 09:19:46 +0000 (-0300) Subject: vxworks: libgcc: include string.h for memset X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99a65bfe59208c33a74718ef5fc05e255a76393a;p=thirdparty%2Fgcc.git 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. --- 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)