diff --git a/components/newlib/newlib/port/syscall.c b/components/newlib/newlib/port/syscall.c index 23b9b67e..87e3ef23 100644 --- a/components/newlib/newlib/port/syscall.c +++ b/components/newlib/newlib/port/syscall.c @@ -79,6 +79,8 @@ int _unlink_r(struct _reent *r, const char *filename) int _fstat_r(struct _reent *r, int fd, struct stat *s) { + s->st_mode = S_IFCHR; + return 0; }