diff options
Diffstat (limited to 'libgfortran/intrinsics/chmod.c')
-rw-r--r-- | libgfortran/intrinsics/chmod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c index 8b5140a05a3..d0371ce560f 100644 --- a/libgfortran/intrinsics/chmod.c +++ b/libgfortran/intrinsics/chmod.c @@ -71,7 +71,10 @@ chmod_internal (char *file, char *mode, gfc_charlen_type mode_len) #ifndef __MINGW32__ bool is_dir; #endif - mode_t mode_mask, file_mode, new_mode; +#ifdef HAVE_UMASK + mode_t mode_mask; +#endif + mode_t file_mode, new_mode; struct stat stat_buf; if (mode_len == 0) |