https://gcc.gnu.org/g:8a6418d06b57273d9d012aafb8af7b15cb5fa5ea

commit r16-1867-g8a6418d06b57273d9d012aafb8af7b15cb5fa5ea
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu May 15 00:07:03 2025 -0300

    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.

Diff:
---
 gcc/ada/init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index 1be90ec58121..35b77736a607 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 <string.h> /* for strncmp */
 #endif
 
 #ifdef __ANDROID__

Reply via email to