From: Justin Weiss Date: Mon, 23 Sep 2019 02:14:07 +0000 (-0700) Subject: Stop calling utime on 3ds X-Git-Tag: r24l~696^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d8f7fdf3e98efb631d08a3481739ea0e52f36f;p=pcsx_rearmed.git Stop calling utime on 3ds The toolchain doesn't have utime defined, so these calls will fail. --- diff --git a/deps/flac-1.3.2/src/libFLAC/metadata_iterators.c b/deps/flac-1.3.2/src/libFLAC/metadata_iterators.c index 0a84d03b..460b234c 100644 --- a/deps/flac-1.3.2/src/libFLAC/metadata_iterators.c +++ b/deps/flac-1.3.2/src/libFLAC/metadata_iterators.c @@ -3430,7 +3430,10 @@ void set_file_stats_(const char *filename, struct flac_stat_s *stats) srctime.actime = stats->st_atime; srctime.modtime = stats->st_mtime; (void)flac_chmod(filename, stats->st_mode); +#if !defined _3DS (void)flac_utime(filename, &srctime); +#endif + #if !defined _MSC_VER && !defined __BORLANDC__ && !defined __MINGW32__ FLAC_CHECK_RETURN(chown(filename, stats->st_uid, -1)); FLAC_CHECK_RETURN(chown(filename, -1, stats->st_gid)); diff --git a/deps/flac-1.3.2/src/share/grabbag/file.c b/deps/flac-1.3.2/src/share/grabbag/file.c index 4cbef9d9..0329bce9 100644 --- a/deps/flac-1.3.2/src/share/grabbag/file.c +++ b/deps/flac-1.3.2/src/share/grabbag/file.c @@ -58,7 +58,9 @@ void grabbag__file_copy_metadata(const char *srcpath, const char *destpath) srctime.actime = srcstat.st_atime; srctime.modtime = srcstat.st_mtime; (void)flac_chmod(destpath, srcstat.st_mode); +#if !defined _3DS (void)flac_utime(destpath, &srctime); +#endif } }