[MacPorts] #54948: optipng 0.7.6: error: no member named 'st_atim' in 'struct stat'
MacPorts
noreply at macports.org
Sat Dec 9 17:39:36 UTC 2017
#54948: optipng 0.7.6: error: no member named 'st_atim' in 'struct stat'
----------------------+------------------------
Reporter: fracai | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: highsierra
Port: optipng |
----------------------+------------------------
Comment (by phriedrich):
Theoretically we also wouldn't need the check for `OSYS_DARWIN ` here,
since the patch is only applied in MacPorts.
So a patch like this would be enough:
{{{
diff -Naur optipng-0.7.6/src/optipng/osys.c
optipng-0.7.6_hs/src/optipng/osys.c
--- optipng-0.7.6/src/optipng/osys.c 2014-10-05 05:51:00.000000000 +0200
+++ optipng-0.7.6_hs/src/optipng/osys.c 2017-12-09 18:31:59.000000000
+0100
@@ -512,8 +512,8 @@
{
struct timespec times[2];
- times[0] = sbuf.st_atim;
- times[1] = sbuf.st_mtim;
+ times[0] = sbuf.st_atimespec;
+ times[1] = sbuf.st_mtimespec;
if (utimensat(AT_FDCWD, dest_path, times, 0) != 0)
result = -1;
}
}}}
Is this the right format?
--
Ticket URL: <https://trac.macports.org/ticket/54948#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list