From e890bec00427b1c1b6bda6c21779a5de0d992424 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <barracuda@macos-powerpc.org>
Date: Sun, 25 Aug 2024 14:21:23 +0800
Subject: [PATCH] window.c: define st_mtim on macOS

Fixes: https://github.com/ib/xarchiver/issues/197
---
 src/window.c | 1 +
 1 file changed, 1 insertion(+)

diff --git src/window.c src/window.c
index dd5bd2fd..52aba781 100644
--- src/window.c
+++ src/window.c
@@ -46,6 +46,7 @@
 #ifdef __APPLE__
 #include <libkern/OSByteOrder.h>
 #define le32toh(x) OSSwapLittleToHostInt32(x)
+#define st_mtim st_mtimespec
 #elif defined(__FreeBSD__)
 #include <sys/endian.h>
 #else
