]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: include string.h
authorAlexandre Oliva <oliva@adacore.com>
Thu, 15 May 2025 03:07:03 +0000 (00:07 -0300)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 1 Jul 2025 08:29:42 +0000 (10:29 +0200)
__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

index 1be90ec5812148f3b27e3bb55640a81382846990..35b77736a607b36c0f5752b87765f5aad981fd95 100644 (file)
@@ -47,6 +47,7 @@
 #ifdef __vxworks
 #include "vxWorks.h"
 #include "version.h" /* for _WRS_VXWORKS_MAJOR */
+#include <string.h> /* for strncmp */
 #endif
 
 #ifdef __ANDROID__