From 8a6418d06b57273d9d012aafb8af7b15cb5fa5ea Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 15 May 2025 00:07:03 -0300 Subject: [PATCH] ada: include string.h __gnat_install_handler calls strncmp when __HANDLE_VXSIM_SC is defined, so string.h needs to be included, and gcc-14 enforces this requirement. gcc/ada/ChangeLog: * init.c: Include string.h. --- gcc/ada/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/init.c b/gcc/ada/init.c index 1be90ec5812..35b77736a60 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -47,6 +47,7 @@ #ifdef __vxworks #include "vxWorks.h" #include "version.h" /* for _WRS_VXWORKS_MAJOR */ +#include /* for strncmp */ #endif #ifdef __ANDROID__ -- 2.47.2