Skip to content

Commit bed0cb5

Browse files
committed
Fix _DIRENT_HAVE_D_* macros.
Don't define _DIRENT_HAVE_D_RECLEN or _DIRENT_HAVE_D_OFF, as WASI libc's dirent doesn't have d_reclen or d_off.
1 parent 7d2354e commit bed0cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libc-top-half/musl/include/dirent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ typedef struct __dirstream DIR;
2525
#include <__typedef_DIR.h>
2626
#endif
2727

28+
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
2829
#define _DIRENT_HAVE_D_RECLEN
2930
#define _DIRENT_HAVE_D_OFF
3031
#define _DIRENT_HAVE_D_TYPE
3132

32-
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
3333
struct dirent {
3434
ino_t d_ino;
3535
off_t d_off;

0 commit comments

Comments
 (0)