From: Alexandre Oliva <ol...@adacore.com>

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.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/adaint.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 63130e0f2bc..2f5bbf31f79 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -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"
-- 
2.43.0

Reply via email to