pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/mmv Use utime() instead of utimes() on Interix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b77e3612e7f
branches:  trunk
changeset: 502663:5b77e3612e7f
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Nov 08 03:03:44 2005 +0000

description:
Use utime() instead of utimes() on Interix.

diffstat:

 misc/mmv/distinfo         |   4 ++--
 misc/mmv/patches/patch-ab |  43 ++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 42 insertions(+), 5 deletions(-)

diffs (69 lines):

diff -r e989db1fbef2 -r 5b77e3612e7f misc/mmv/distinfo
--- a/misc/mmv/distinfo Tue Nov 08 02:37:55 2005 +0000
+++ b/misc/mmv/distinfo Tue Nov 08 03:03:44 2005 +0000
@@ -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 -r e989db1fbef2 -r 5b77e3612e7f misc/mmv/patches/patch-ab
--- a/misc/mmv/patches/patch-ab Tue Nov 08 02:37:55 2005 +0000
+++ b/misc/mmv/patches/patch-ab Tue Nov 08 03:03:44 2005 +0000
@@ -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 @@
  
  #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



Home | Main Index | Thread Index | Old Index