https://gcc.gnu.org/g:c2f5914bc6796263798899c6cb1ef4ebfc559ec5

commit r16-1797-gc2f5914bc6796263798899c6cb1ef4ebfc559ec5
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu Apr 17 01:18:30 2025 -0300

    ada: include header to declare isalpha in adaint
    
    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.

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

diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 63130e0f2bc4..2f5bbf31f799 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"

Reply via email to