delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/17/05:02:54

Date: Sat, 17 Mar 2001 12:02:04 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Laurynas Biveinis" <lauras AT softhome DOT net>
Message-Id: <6137-Sat17Mar2001120203+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: rich AT phekda DOT freeserve DOT co DOT uk, djgpp-workers AT delorie DOT com
In-reply-to: <20010317113611.A199@lauras.lt>
Subject: Re: Patch for fileutils 4.0 WRT symlinks
References: <20010317113611 DOT A199 AT lauras DOT lt>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Sat, 17 Mar 2001 11:36:11 +0200
> 
> Hello, below is the mostly trivial patch which is necessarry
> to get working fileutils with djgpp 2.04.

Thanks.

> -#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

I'd prefer for this to be conditioned on HAVE_WORKING_LSTAT, so that
Fileutils could be built with older versions of DJGPP.  It would need
an additional test in configure.

Alternatively, make that test look at __DJGPP_MINOR__.

- Raw text -


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