]> sourceware.org Git - newlib-cygwin.git/commitdiff
RTEMS: Define ssize_t for <dirent.h>
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 12 Feb 2024 19:10:26 +0000 (20:10 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Sat, 24 Feb 2024 10:31:43 +0000 (11:31 +0100)
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

newlib/libc/sys/rtems/include/sys/dirent.h

index d44047fa5b7e535014e8d1db27314a0afb18fda6..6f8ff4278db71361f9b57e0a3d9f4f35bbe5544a 100644 (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;
This page took 0.034823 seconds and 5 git commands to generate.