public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Define ssize_t for <dirent.h>
@ 2024-02-24 10:33 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2024-02-24 10:33 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3e16e86a569950fcddc3d6a55e54cdae00634d6e

commit 3e16e86a569950fcddc3d6a55e54cdae00634d6e
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Feb 12 20:10:26 2024 +0100

    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

Diff:
---
 newlib/libc/sys/rtems/include/sys/dirent.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
index d44047fa5..6f8ff4278 100644
--- a/newlib/libc/sys/rtems/include/sys/dirent.h
+++ b/newlib/libc/sys/rtems/include/sys/dirent.h
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-24 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-24 10:33 [newlib-cygwin] RTEMS: Define ssize_t for <dirent.h> Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).