Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/emulators/amiberry/files/patch-src_osdep_fsdb__host.cpp
46590 views
1
--- src/osdep/fsdb_host.cpp.orig 2026-04-25 15:03:50 UTC
2
+++ src/osdep/fsdb_host.cpp
3
@@ -642,7 +642,13 @@ bool my_utime(const char* name, const struct mytimeval
4
ok = _utime(path_utf8.c_str(), &utb) == 0;
5
#else
6
struct timeval times[2];
7
+#if defined(__FreeBSD__) && defined(__i386__)
8
+ times[0].tv_sec = static_cast<time_t>(mtv.tv_sec);
9
+ times[0].tv_usec = static_cast<suseconds_t>(mtv.tv_usec);
10
+ times[1] = times[0];
11
+#else
12
times[0] = times[1] = { mtv.tv_sec, mtv.tv_usec };
13
+#endif
14
ok = utimes(path_utf8.c_str(), times) == 0;
15
#endif
16
}
17
18