From d352220604e9a3cae5ba219de7e0a013dd3ddbcf Mon Sep 17 00:00:00 2001 From: Samuel Bingner Date: Sun, 19 Aug 2018 11:37:20 +0300 Subject: [PATCH] Ticket #3930: clarify name of struct stat members for Apple compilation. Signed-off-by: Andrew Borodin --- lib/global.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/global.h b/lib/global.h index 96b20f2e3..7f0b65c6c 100644 --- a/lib/global.h +++ b/lib/global.h @@ -137,6 +137,13 @@ #define OS_SORT_CASE_SENSITIVE_DEFAULT TRUE #define UTF8_CHAR_LEN 6 +/* struct stat members */ +#ifdef __APPLE__ +#define st_atim st_atimespec +#define st_ctim st_ctimespec +#define st_mtim st_mtimespec +#endif + /* Used to distinguish between a normal MC termination and */ /* one caused by typing 'exit' or 'logout' in the subshell */ #define SUBSHELL_EXIT 128