Mail Archives: djgpp-workers/2001/03/17/11:48:22
> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Sat, 17 Mar 2001 12:11:03 +0200
>
> > > -#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.
>
> Do you really want to condition quoted excerpt on HAVE_WORKING_LSTAT?
> I think this macro is suitable for lstat() in djutils.c only. Here you
> really need __DJGPP_MINOR__.
I don't see why. Perhaps I'm missing something.
- Raw text -