diff options
author | tv <tv@pkgsrc.org> | 2005-01-16 16:39:08 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-16 16:39:08 +0000 |
commit | 4b439c6596d740049d0f262cb1c857f57a14b639 (patch) | |
tree | c94fb1369b198a98b2777efd73e428e06c820d9e /archivers/arc | |
parent | 46879d25786fa0f4d81d70d048c82f381aaabbd4 (diff) | |
download | pkgsrc-4b439c6596d740049d0f262cb1c857f57a14b639.tar.gz |
MAke build on Interix.
Diffstat (limited to 'archivers/arc')
-rw-r--r-- | archivers/arc/distinfo | 4 | ||||
-rw-r--r-- | archivers/arc/patches/patch-ab | 40 |
2 files changed, 33 insertions, 11 deletions
diff --git a/archivers/arc/distinfo b/archivers/arc/distinfo index eec051bc649..a51b32680a3 100644 --- a/archivers/arc/distinfo +++ b/archivers/arc/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2005/01/01 11:43:27 kristerw Exp $ +$NetBSD: distinfo,v 1.6 2005/01/16 16:39:08 tv Exp $ SHA1 (arc521e.pl8.tar.Z) = 34210f9aeaac39a15b34e6aa400b38127b6a2a20 Size (arc521e.pl8.tar.Z) = 100821 bytes SHA1 (patch-aa) = 62324f346559b2997eba56698b1c0c1c29a328c3 -SHA1 (patch-ab) = 431f3581ed6cfce2e760da9aa2f2b8b59fc4eb56 +SHA1 (patch-ab) = 64fba2f0b5d03f26e427ecddc70e2a9b6b2fc521 SHA1 (patch-ac) = 64d87af431c6bc0ded0b26167782309a7bfadd8a diff --git a/archivers/arc/patches/patch-ab b/archivers/arc/patches/patch-ab index 6f31fe8a193..60a75155b6b 100644 --- a/archivers/arc/patches/patch-ab +++ b/archivers/arc/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.3 2004/04/10 23:31:27 minskim Exp $ +$NetBSD: patch-ab,v 1.4 2005/01/16 16:39:08 tv Exp $ ---- arcdos.c.orig 1992-04-14 17:58:21.000000000 -0500 +--- arcdos.c.orig 1992-04-14 18:58:21.000000000 -0400 +++ arcdos.c @@ -31,7 +31,11 @@ #include <sys/types.h> @@ -14,25 +14,47 @@ $NetBSD: patch-ab,v 1.3 2004/04/10 23:31:27 minskim Exp $ #else #include <time.h> /* Sys V. Bleah. */ struct timeval { -@@ -173,14 +177,21 @@ setstamp(f, date, time) /* set a file's +@@ -50,6 +54,11 @@ struct timeval { + char *malloc(); + #endif + ++#if defined(__INTERIX) ++#define NO_UTIMES ++#include <utime.h> ++#endif ++ + VOID + getstamp(f, date, time) /* get a file's date/time stamp */ + #if !_MTS +@@ -171,20 +180,29 @@ setstamp(f, date, time) /* set a file's + #endif + #if UNIX struct tm tm; ++#ifdef NO_UTIMES ++ struct utimbuf utb; ++#else struct timeval tvp[2]; - int utimes(); -+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__) - long tmclock(); +#endif + int utimes(); +- long tmclock(); 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; +- tvp[0].tv_sec = tmclock(&tm); + tm.tm_isdst = -1; -+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__) - tvp[0].tv_sec = tmclock(&tm); ++#ifdef NO_UTIMES ++ utb.actime = utb.modtime = mktime(&tm); ++ utime(f, &utb); +#else + tvp[0].tv_sec = mktime(&tm); -+#endif tvp[1].tv_sec = tvp[0].tv_sec; tvp[0].tv_usec = tvp[1].tv_usec = 0; utimes(f, tvp); + #endif ++#endif + } + + #if MSDOS |