pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/arc Make this package build on Linux. Patch...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3bb2120d4024
branches: trunk
changeset: 472437:3bb2120d4024
user: minskim <minskim%pkgsrc.org@localhost>
date: Sat Apr 10 23:31:27 2004 +0000
description:
Make this package build on Linux. Patch provided by Georg Schwarz in
PR pkg/25043.
diffstat:
archivers/arc/distinfo | 4 ++--
archivers/arc/patches/patch-ab | 24 ++++++++++++++++++------
2 files changed, 20 insertions(+), 8 deletions(-)
diffs (54 lines):
diff -r 71adce2ff285 -r 3bb2120d4024 archivers/arc/distinfo
--- a/archivers/arc/distinfo Sat Apr 10 23:06:42 2004 +0000
+++ b/archivers/arc/distinfo Sat Apr 10 23:31:27 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2002/06/10 15:09:16 schmonz Exp $
+$NetBSD: distinfo,v 1.4 2004/04/10 23:31:27 minskim Exp $
SHA1 (arc521e.pl8.tar.Z) = 34210f9aeaac39a15b34e6aa400b38127b6a2a20
Size (arc521e.pl8.tar.Z) = 100821 bytes
SHA1 (patch-aa) = 62324f346559b2997eba56698b1c0c1c29a328c3
-SHA1 (patch-ab) = dfdfde740d70511adba711bb0a228154a9c9993e
+SHA1 (patch-ab) = 431f3581ed6cfce2e760da9aa2f2b8b59fc4eb56
diff -r 71adce2ff285 -r 3bb2120d4024 archivers/arc/patches/patch-ab
--- a/archivers/arc/patches/patch-ab Sat Apr 10 23:06:42 2004 +0000
+++ b/archivers/arc/patches/patch-ab Sat Apr 10 23:31:27 2004 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index