summaryrefslogtreecommitdiff
path: root/archivers/arc/files/patch-arcdos.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
commite2aedd8abd3ca3fb06e9a7ca9ccb01278ff31386 (patch)
tree6f70fd9588858cfa314056ee54c090493d3fcc75 /archivers/arc/files/patch-arcdos.c
parentdevel/py-nose: Update to 1.3.3, Fix tests (diff)
Start cleaning up some of the uselessly ambigious patches named
patch-xy, and giving them proper names.
Diffstat (limited to 'archivers/arc/files/patch-arcdos.c')
-rw-r--r--archivers/arc/files/patch-arcdos.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/archivers/arc/files/patch-arcdos.c b/archivers/arc/files/patch-arcdos.c
new file mode 100644
index 000000000000..52bf11b472f3
--- /dev/null
+++ b/archivers/arc/files/patch-arcdos.c
@@ -0,0 +1,25 @@
+*** arcdos.c.old Wed Apr 15 02:58:21 1992
+--- arcdos.c Sat Dec 31 20:32:25 1994
+***************
+*** 173,186 ****
+--- 173,192 ----
+ struct tm tm;
+ struct timeval tvp[2];
+ int utimes();
++ #if !defined(__FreeBSD__) && !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);