From b7ae2fe33bb2783a52fccc2d1da70e3e5df5575d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 29 Aug 2019 09:40:40 -0700 Subject: [PATCH] WASI libc's dirent does have t_type, so define _DIRENT_HAVE_D_TYPE. Also update predefined-macros.txt. --- expected/wasm32-wasi/predefined-macros.txt | 2 -- libc-bottom-half/headers/public/__struct_dirent.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/expected/wasm32-wasi/predefined-macros.txt b/expected/wasm32-wasi/predefined-macros.txt index 1d6ea06..77b965a 100644 --- a/expected/wasm32-wasi/predefined-macros.txt +++ b/expected/wasm32-wasi/predefined-macros.txt @@ -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 diff --git a/libc-bottom-half/headers/public/__struct_dirent.h b/libc-bottom-half/headers/public/__struct_dirent.h index 1b734e8..9d2ece8 100644 --- a/libc-bottom-half/headers/public/__struct_dirent.h +++ b/libc-bottom-half/headers/public/__struct_dirent.h @@ -3,6 +3,8 @@ #include <__typedef_ino_t.h> +#define _DIRENT_HAVE_D_TYPE + struct dirent { ino_t d_ino; unsigned char d_type;