[PATCH] newlib: add sys/types.h include to provide ssize_t type
Alexey Lapshin
alexey.lapshin@espressif.com
Thu May 1 17:45:58 GMT 2025
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
More information about the Newlib
mailing list