RTEMS: Define ssize_t for <dirent.h>

This fixes the following build issue:

newlib/libc/include/dirent.h:84:1: error: unknown type name 'ssize_t'; did you mean '_ssize_t'?
   84 | ssize_t posix_getdents(int, void *, size_t, int);
      | ^~~~~~~
      | _ssize_t
This commit is contained in:
Sebastian Huber 2024-02-12 20:10:26 +01:00
parent a0d7758359
commit 3e16e86a56
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ typedef __off_t off_t;
#define _OFF_T_DECLARED
#endif
#ifndef _SSIZE_T_DECLARED
typedef _ssize_t ssize_t;
#define _SSIZE_T_DECLARED
#endif
typedef struct _dirdesc {
int dd_fd;
long dd_loc;