WASI libc's dirent does have t_type, so define _DIRENT_HAVE_D_TYPE.

Also update predefined-macros.txt.
This commit is contained in:
Dan Gohman 2019-08-29 09:40:40 -07:00
parent bed0cb5d3a
commit b7ae2fe33b
2 changed files with 2 additions and 2 deletions

View File

@ -2079,8 +2079,6 @@
#define _CTYPE_H
#define _Complex_I (0.0f+1.0fi)
#define _DIRENT_H
#define _DIRENT_HAVE_D_OFF
#define _DIRENT_HAVE_D_RECLEN
#define _DIRENT_HAVE_D_TYPE
#define _ENDIAN_H
#define _ERRNO_H

View File

@ -3,6 +3,8 @@
#include <__typedef_ino_t.h>
#define _DIRENT_HAVE_D_TYPE
struct dirent {
ino_t d_ino;
unsigned char d_type;