Files
macports-ports/sysutils/squashfs-tools/files/patch-mksquashfs-st_atimespec.diff
2026-03-29 20:28:33 -04:00

14 lines
402 B
Diff

--- mksquashfs.c.orig
+++ mksquashfs.c
@@ -3372,7 +3372,9 @@
* lazytime or relatime and the file has been created or
* modified since the last access.
*/
-#ifdef st_atime
+#ifdef __APPLE__
+ memset(&buf->st_atimespec, 0, sizeof(buf->st_atimespec));
+#elif defined(st_atime)
memset(&buf->st_atim, 0, sizeof(buf->st_atim));
#else
memset(&buf->st_atime, 0, sizeof(buf->st_atime));