This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][DJGPP][libgfortran] Do not use S_ISVTX for DJGPP in libfortran/intrinsic/chmod.c
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Andris Pavenis <andris dot pavenis at iki dot fi>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, DJ Delorie <dj at delorie dot com>
- Date: Sun, 15 Nov 2015 20:19:14 +0100
- Subject: Re: [PATCH][DJGPP][libgfortran] Do not use S_ISVTX for DJGPP in libfortran/intrinsic/chmod.c
- Authentication-results: sourceware.org; auth=none
- References: <5648CB8A dot 9050407 at iki dot fi>
Andris Pavenis <andris.pavenis@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, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."