diff options
author | tv <tv@pkgsrc.org> | 2005-11-08 03:03:44 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-11-08 03:03:44 +0000 |
commit | 0c21f68c9c4fd6a0f161c10dc79f5a27ff2a163c (patch) | |
tree | 0e3d6467378b2a30b81dc09f052f368402d30130 /misc | |
parent | 950f155c8eb30de07bce1b668d8dc7e548048c22 (diff) | |
download | pkgsrc-0c21f68c9c4fd6a0f161c10dc79f5a27ff2a163c.tar.gz |
Use utime() instead of utimes() on Interix.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/mmv/distinfo | 4 | ||||
-rw-r--r-- | misc/mmv/patches/patch-ab | 43 |
2 files changed, 42 insertions, 5 deletions
diff --git a/misc/mmv/distinfo b/misc/mmv/distinfo index 54406625e24..22533cd51e7 100644 --- a/misc/mmv/distinfo +++ b/misc/mmv/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/02/24 11:02:56 agc Exp $ +$NetBSD: distinfo,v 1.5 2005/11/08 03:03:44 tv Exp $ SHA1 (mmv_1.01b.orig.tar.gz) = 538a26b1d7e8b9bc286843e6aa2d8d959d8914bb RMD160 (mmv_1.01b.orig.tar.gz) = b268bd5ec5149a4628b73844221f6f60b026e80b Size (mmv_1.01b.orig.tar.gz) = 25656 bytes SHA1 (patch-aa) = eb97c23ee711b1650d4e36ba61258ee704fd6766 -SHA1 (patch-ab) = 1fc216f9d3ea0747ce57498e9738c1182c8555ee +SHA1 (patch-ab) = 6580809b6bcb2ff8ab814ce31c22d5bd9461bacd diff --git a/misc/mmv/patches/patch-ab b/misc/mmv/patches/patch-ab index edee1a84104..7b43b99d70a 100644 --- a/misc/mmv/patches/patch-ab +++ b/misc/mmv/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.2 2001/08/16 10:16:18 abs Exp $ +$NetBSD: patch-ab,v 1.3 2005/11/08 03:03:44 tv Exp $ ---- mmv.c.orig Mon Oct 25 10:29:39 1993 +--- mmv.c.orig 1993-10-25 06:29:39.000000000 -0400 +++ mmv.c -@@ -123,10 +123,13 @@ +@@ -123,10 +123,13 @@ extern unsigned _stklen = 10000; #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> @@ -16,3 +16,40 @@ $NetBSD: patch-ab,v 1.2 2001/08/16 10:16:18 abs Exp $ #ifdef HAS_DIRENT #include <dirent.h> +@@ -188,7 +191,7 @@ extern char *strcpy(), *strchr(); + #include <fcntl.h> + #endif + +-#ifdef IS_SYSV ++#if defined(IS_SYSV) || defined(__INTERIX) + + /* for System V and Version 7*/ + struct utimbuf { +@@ -197,6 +200,9 @@ struct utimbuf { + }; + #define utimes(f, t) utime((f), &(t)) + ++#endif ++ ++#ifdef IS_SYSV + #ifndef HAS_RENAME + #ifndef MV_DIR + # define MV_DIR "/usr/lib/mv_dir" +@@ -2631,7 +2637,7 @@ static int copy(ff, len) + #ifdef IS_MSDOS + struct ftime tim; + #else +-#ifdef IS_SYSV ++#if defined(IS_SYSV) || defined(__INTERIX) + struct utimbuf tim; + #else + struct timeval tim[2]; +@@ -2706,7 +2712,7 @@ static int copy(ff, len) + #else + stat(pathbuf, &fstat) || + ( +-#ifdef IS_SYSV ++#if defined(IS_SYSV) || defined(__INTERIX) + tim.actime = fstat.st_atime, + tim.modtime = fstat.st_mtime, + #else |