From 53dd70f05fdb6ababe7c1ca70f0f62bcf4930b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 26 Aug 2024 02:49:07 +0200 Subject: [PATCH] Macintosh port (it doesn't have standard struct stat) Ref: https://github.com/cybernoid/archivemount/issues/32 Reported-by: github.com/ziggy90127 Validated-by: github.com/ziggy90127 --- archivemount.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archivemount.cpp b/archivemount.cpp index cb9b463..11d3810 100644 --- a/archivemount.cpp +++ b/archivemount.cpp @@ -56,6 +56,10 @@ using namespace std::literals; #define lerrnum(err) lerr("%s", strerror(err)) #define lerrno() lerrnum(errno) +#if __APPLE__ +#define st_mtim st_mtimespec +#endif + typedef struct node { // ^ must be first -- 2.45.2