[PATCH] newlib: add sys/types.h include to provide ssize_t type

Alexey Lapshin <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[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>
 #include <sys/dirent.h>
 
 #if !defined(MAXNAMLEN) && __BSD_VISIBLE
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.