summaryrefslogtreecommitdiff
path: root/archivers/arc/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-04-10 23:31:27 +0000
committerminskim <minskim@pkgsrc.org>2004-04-10 23:31:27 +0000
commitab56bdc82c6f198a0c748a7c4c574e8d8ca586b3 (patch)
tree42f27dd9703da3fe9c3698dbbb6c5c1d6e5e7956 /archivers/arc/patches
parent4fcbaa734af5417271565e43e71d2c58a0380695 (diff)
downloadpkgsrc-ab56bdc82c6f198a0c748a7c4c574e8d8ca586b3.tar.gz
Make this package build on Linux. Patch provided by Georg Schwarz in
PR pkg/25043.
Diffstat (limited to 'archivers/arc/patches')
-rw-r--r--archivers/arc/patches/patch-ab24
1 files changed, 18 insertions, 6 deletions
diff --git a/archivers/arc/patches/patch-ab b/archivers/arc/patches/patch-ab
index ea16ca43816..6f31fe8a193 100644
--- a/archivers/arc/patches/patch-ab
+++ b/archivers/arc/patches/patch-ab
@@ -1,12 +1,24 @@
-$NetBSD: patch-ab,v 1.2 2002/06/10 15:09:17 schmonz Exp $
+$NetBSD: patch-ab,v 1.3 2004/04/10 23:31:27 minskim Exp $
---- arcdos.c.orig Tue Apr 14 18:58:21 1992
-+++ arcdos.c Sun Jun 9 12:01:30 2002
-@@ -173,14 +173,21 @@
+--- arcdos.c.orig 1992-04-14 17:58:21.000000000 -0500
++++ arcdos.c
+@@ -31,7 +31,11 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #if BSD
++#ifdef __linux__
++#include <time.h>
++#else
+ #include <sys/time.h>
++#endif
+ #else
+ #include <time.h> /* Sys V. Bleah. */
+ struct timeval {
+@@ -173,14 +177,21 @@ setstamp(f, date, time) /* set a file's
struct tm tm;
struct timeval tvp[2];
int utimes();
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
long tmclock();
+#endif
tm.tm_sec = (time & 31) * 2;
@@ -16,7 +28,7 @@ $NetBSD: patch-ab,v 1.2 2002/06/10 15:09:17 schmonz Exp $
tm.tm_mon = ((date >> 5) & 15) - 1;
tm.tm_year = (date >> 9) + 80;
+ tm.tm_isdst = -1;
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
tvp[0].tv_sec = tmclock(&tm);
+#else
+ tvp[0].tv_sec = mktime(&tm);