]> git.proxmox.com Git - wasi-libc.git/commitdiff
Fix _DIRENT_HAVE_D_* macros.
authorDan Gohman <sunfish@mozilla.com>
Thu, 29 Aug 2019 13:58:56 +0000 (06:58 -0700)
committerDan Gohman <sunfish@mozilla.com>
Thu, 29 Aug 2019 17:22:03 +0000 (10:22 -0700)
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.

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

index b780ffe4634dd03666a1a7d73d6eccbedae6c409..20b1f79c1e929fd91c0e7cc32ebf619926e9f24b 100644 (file)
@@ -25,11 +25,11 @@ typedef struct __dirstream DIR;
 #include <__typedef_DIR.h>
 #endif
 
+#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
 #define _DIRENT_HAVE_D_RECLEN
 #define _DIRENT_HAVE_D_OFF
 #define _DIRENT_HAVE_D_TYPE
 
-#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
 struct dirent {
        ino_t d_ino;
        off_t d_off;