]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: include header to declare isalpha in adaint
authorAlexandre Oliva <oliva@adacore.com>
Thu, 17 Apr 2025 04:18:30 +0000 (01:18 -0300)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 30 Jun 2025 13:47:20 +0000 (15:47 +0200)
A vxworks-specific part of adaint.c calls isalpha without including
ctype.h.  gcc-14 rejects calls of undeclared functions.  Include the
required header file when compiling for vxworks.

gcc/ada/ChangeLog:

* adaint.c [__vxworks]: Include ctype.h.

gcc/ada/adaint.c

index 63130e0f2bc40f6617f716068231a259e159cba2..2f5bbf31f799d1d622ca1e90461abddb45e99fc5 100644 (file)
@@ -61,6 +61,7 @@
 #define POSIX
 #include "vxWorks.h"
 #include <sys/time.h>
+#include <ctype.h> /* for isalpha */
 
 #if defined (__mips_vxworks)
 #include "cacheLib.h"