Andris Pavenis <andris.pave...@iki.fi> writes: > diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c > index 1fffa3d..482a8a6 100644 > --- a/libgfortran/intrinsics/chmod.c > +++ b/libgfortran/intrinsics/chmod.c > @@ -451,7 +451,7 @@ clause_done: > if ((ugo[2] || honor_umask) && !rwxXstugo[8]) > file_mode = (file_mode & ~(S_IROTH | S_IWOTH | S_IXOTH)) > | (new_mode & (S_IROTH | S_IWOTH | S_IXOTH)); > -#ifndef __VXWORKS__ > +#if !defined(__VXWORKS__) && !defined(__DJGPP__)
How about making that #ifdef S_ISVTX? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."