diff options
Diffstat (limited to 'misc/mmv/patches/patch-ab')
-rw-r--r-- | misc/mmv/patches/patch-ab | 43 |
1 files changed, 40 insertions, 3 deletions
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 |