Re: [PATCH] newlib: add sys/types.h include to provide ssize_t type
Sebastian Huber <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Hello Alexey, ----- Am 1. Mai 2025 um 19:45 schrieb Alexey Lapshin [email protected]: > Include the required header to provide the declaration for: > ssize_t posix_getdents(int, void *, size_t, int); > > --- > newlib/libc/include/dirent.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/newlib/libc/include/dirent.h b/newlib/libc/include/dirent.h > index 239253ee6..59b82ebcd 100644 > --- a/newlib/libc/include/dirent.h > +++ b/newlib/libc/include/dirent.h > @@ -35,7 +35,7 @@ > #ifndef _DIRENT_H_ > #define _DIRENT_H_ > > -#include <sys/cdefs.h> > +#include <sys/types.h> I am not sure if this could cause namespace issues. The <stdio.h> uses this approach: #include <sys/_types.h> #ifndef _SSIZE_T_DECLARED typedef _ssize_t ssize_t; #define _SSIZE_T_DECLARED #endif > #include <sys/dirent.h> > > #if !defined(MAXNAMLEN) && __BSD_VISIBLE > -- > 2.43.0 -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: [email protected] phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/