https://gcc.gnu.org/g:fe1ed68000d5e9d41ed48ef1202fd21c8b8c9ff8
commit r15-3693-gfe1ed68000d5e9d41ed48ef1202fd21c8b8c9ff8 Author: Francois-Xavier Coudert <fxcoud...@gcc.gnu.org> Date: Sat May 11 17:08:05 2024 +0200 jit: Ensure ssize_t is defined On some targets it seems that ssize_t is not defined by any of the headers transitively included by <stdio.h>. This leads to a bootstrap fail when jit is enabled. gcc/jit/ChangeLog: * libgccjit.h: Include <sys/types.h> Diff: --- gcc/jit/libgccjit.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h index 1d5be27374ec..03bfc0f58a53 100644 --- a/gcc/jit/libgccjit.h +++ b/gcc/jit/libgccjit.h @@ -21,6 +21,11 @@ along with GCC; see the file COPYING3. If not see #define LIBGCCJIT_H #include <stdio.h> +#ifdef __has_include +#if __has_include (<sys/types.h>) +#include <sys/types.h> +#endif +#endif #ifdef __cplusplus extern "C" {