Fix struct stat fields for darwin (#473)

Darwin doesn't support POSIX compatible stat fields when -fmodule
This commit is contained in:
Yuta Saito 2020-12-21 11:56:33 +09:00 committed by GitHub
parent ad35c3c21b
commit a2294877f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,9 +86,9 @@
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#define st_atimespec st_atim #define st_atim st_atimespec
#define st_mtimespec st_mtim #define st_ctim st_ctimespec
#define st_ctimespec st_ctim #define st_mtim st_mtimespec
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__