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>
This commit is contained in:
Francois-Xavier Coudert 2024-05-11 17:08:05 +02:00
parent 4b03750f8c
commit fe1ed68000

View file

@ -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" {