From a2294877f5ad25d1391849a05c6103e40296bfda Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 21 Dec 2020 11:56:33 +0900 Subject: [PATCH] Fix struct stat fields for darwin (#473) Darwin doesn't support POSIX compatible stat fields when -fmodule --- .../libc-wasi/sandboxed-system-primitives/src/ssp_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h index 5114366c..c08d28b2 100644 --- a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h +++ b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h @@ -86,9 +86,9 @@ #endif #ifdef __APPLE__ -#define st_atimespec st_atim -#define st_mtimespec st_mtim -#define st_ctimespec st_ctim +#define st_atim st_atimespec +#define st_ctim st_ctimespec +#define st_mtim st_mtimespec #endif #ifdef __APPLE__