www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/17/04:38:03

From: "Laurynas Biveinis" <lauras AT softhome DOT net>
Date: Sat, 17 Mar 2001 11:36:11 +0200
To: rich AT phekda DOT freeserve DOT co DOT uk
Cc: djgpp-workers AT delorie DOT com
Subject: Patch for fileutils 4.0 WRT symlinks
Message-ID: <20010317113611.A199@lauras.lt>
Mail-Followup-To: rich AT phekda DOT freeserve DOT co DOT uk, djgpp-workers AT delorie DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.3.15i
Reply-To: djgpp-workers AT delorie DOT com

Hello, below is the mostly trivial patch which is necessarry
to get working fileutils with djgpp 2.04. If want to keep 2.03
compatibility, you'll have to tweak it a bit. 

It removes djutils.c, because the only function here is lstat(),
and conditional S_ISLNK define in ln.c. And that's it :)

(Regenerated files and djutils.c removal diffs are not included)

Laurynas

diff -rup filutil4.0.orig/src/ln.c filutil4.0/src/ln.c
--- filutil4.0.orig/src/ln.c	Sun Mar  4 22:12:32 2001
+++ filutil4.0/src/ln.c	Sat Mar 17 10:32:18 2001
@@ -31,16 +31,6 @@
 #include "closeout.h"
 #include "error.h"
 
-#ifdef  __DJGPP__
-/* DJGPP doesn't have S_ISLNK defined, because MS-DOS doesn't support links.
- * However, DJGPP's `link' simulates hard links by copying, and we can
- * have ``symbolic links'' for DJGPP .EXE programs.  Therefore, just
- * for the purpose of this program, it makes sense to define S_ISLNK
- * so we could have working `ln'.  */
-
-#define S_ISLNK(x)  (0)     /* defined, but no file is a link */
-#endif
-
 int link ();			/* Some systems don't declare this anywhere. */
 
 #ifdef S_ISLNK
diff -rup filutil4.0.orig/src/Makefile.am filutil4.0/src/Makefile.am
--- filutil4.0.orig/src/Makefile.am	Sun Mar  4 22:12:32 2001
+++ filutil4.0/src/Makefile.am	Sat Mar 17 10:39:50 2001
@@ -34,23 +34,23 @@ transform = s/ginstall/install/; @progra
 ginstall_SOURCES = install.c copy.c cp-hash.c djstart.c
 
 dircolors_SOURCES = dircolors.c djstart.c
-dir_SOURCES = ls.c ls-dir.c ls-msdos.c djutils.c djstart.c
-vdir_SOURCES = ls.c ls-vdir.c ls-msdos.c djutils.c djstart.c
-ls_SOURCES = ls.c ls-ls.c ls-msdos.c djutils.c djstart.c
-
-cp_SOURCES = cp.c copy.c cp-hash.c djutils.c djstart.c
-mv_SOURCES = mv.c copy.c cp-hash.c remove.c djutils.c djstart.c
-rm_SOURCES = rm.c remove.c djutils.c djstart.c
-
-chgrp_SOURCES = chgrp.c djutils.c djstart.c
-chown_SOURCES = chown.c djutils.c djstart.c
-chmod_SOURCES = chmod.c djutils.c djstart.c
+dir_SOURCES = ls.c ls-dir.c ls-msdos.c djstart.c
+vdir_SOURCES = ls.c ls-vdir.c ls-msdos.c djstart.c
+ls_SOURCES = ls.c ls-ls.c ls-msdos.c djstart.c
+
+cp_SOURCES = cp.c copy.c cp-hash.c djstart.c
+mv_SOURCES = mv.c copy.c cp-hash.c remove.c djstart.c
+rm_SOURCES = rm.c remove.c djstart.c
+
+chgrp_SOURCES = chgrp.c djstart.c
+chown_SOURCES = chown.c djstart.c
+chmod_SOURCES = chmod.c djstart.c
 
-ln_SOURCES = ln.c djutils.c djstart.c
+ln_SOURCES = ln.c djstart.c
 
 touch_SOURCES = touch.c djstart.c
 
-du_SOURCES = du.c djutils.c djstart.c
+du_SOURCES = du.c djstart.c
 df_SOURCES = df.c djstart.c
 sync_SOURCES = sync.c djstart.c

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019