mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-10 14:07:48 +00:00
macOS fixes
This commit is contained in:
@@ -512,8 +512,12 @@ static void SetAudioFileTime(const SystemString& path, const Sstat& stat)
|
||||
#if _WIN32
|
||||
__utimbuf64 times = { stat.st_atime, stat.st_mtime };
|
||||
_wutime64(path.c_str(), ×);
|
||||
#else
|
||||
#if __APPLE__
|
||||
struct timespec times[] = { stat.st_atimespec, stat.st_mtimespec };
|
||||
#else
|
||||
struct timespec times[] = { stat.st_atim, stat.st_mtim };
|
||||
#endif
|
||||
utimensat(AT_FDCWD, path.c_str(), times, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user