Skip to content

Commit

Permalink
jit: Ensure ssize_t is defined.
Browse files Browse the repository at this point in the history
Tested on i686, x86_64 Darwin, x86_64 Linux,
OK for trunk?
  • Loading branch information
iains authored and ouuleilei-bot committed Jan 28, 2024
1 parent c2d62cd commit 6aeb19a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/jit/libgccjit.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ along with GCC; see the file COPYING3. If not see
#define LIBGCCJIT_H

#include <stdio.h>
#if __has_include(<sys/types.h>)
# include <sys/types.h> /* For ssize_t. */
#endif

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 6aeb19a

Please sign in to comment.