--- src/dos/drive_local.cpp.orig 2022-01-31 18:05:19.000000000 -0800 +++ src/dos/drive_local.cpp 2022-02-14 14:11:35.000000000 -0800 @@ -92,6 +92,16 @@ #define MAX_PATH PATH_MAX #endif +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300 +#include +int futimens(int filedes, const struct timespec ftsp[2]) { + struct timeval ftvp[2]; + TIMESPEC_TO_TIMEVAL(ftvp, ftsp); + + return (futimes(filedes, ftvp)); +} +#endif + uint16_t ldid[256]; std::string ldir[256]; static host_cnv_char_t cpcnv_temp[4096];