]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vxworks: libgcc: include string.h for memset
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:19:46 +0000 (06:19 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:19:46 +0000 (06:19 -0300)
gthr-vxworks-thread.c calls memset in __ghtread_cond_signal, but it
fails ot include <string.h>, 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

index 17c60faba48ff1ba2ca0572aefb38dbee71303b8..31f291aca67e3176c704df74dcecc86523e0b473 100644 (file)
@@ -33,6 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #include <taskLib.h>
 #include <stdlib.h>
+#include <string.h>
 
 #define __TIMESPEC_TO_NSEC(timespec) \
   ((long long)timespec.tv_sec * 1000000000 + (long long)timespec.tv_nsec)