openbsd-ports/archivers/arc/patches/patch-arcdos_c
obecian e73603ade9 + rename patches
+ integrate COMMENT
+ bump version

ports/archivers - ports@ maintained ports
2001-03-29 11:41:17 +00:00

24 lines
675 B
Plaintext

--- arcdos.c.orig Tue Apr 14 18:58:21 1992
+++ arcdos.c Mon Aug 9 11:19:46 1999
@@ -173,14 +173,20 @@
struct tm tm;
struct timeval tvp[2];
int utimes();
+#if !defined(__FreeSBD__) && !defined(__OpenBSD__)
long tmclock();
+#endif
tm.tm_sec = (time & 31) * 2;
tm.tm_min = (time >> 5) & 63;
tm.tm_hour = (time >> 11);
tm.tm_mday = date & 31;
tm.tm_mon = ((date >> 5) & 15) - 1;
tm.tm_year = (date >> 9) + 80;
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
tvp[0].tv_sec = tmclock(&tm);
+#else
+ tvp[0].tv_sec = timelocal(&tm);
+#endif
tvp[1].tv_sec = tvp[0].tv_sec;
tvp[0].tv_usec = tvp[1].tv_usec = 0;
utimes(f, tvp);