From 7f7e58935b965845c2413a8b948865643d32d7e5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 11 May 2001 12:59:50 +0000 Subject: 14314: writing const variable under cygwin --- Src/Modules/stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src') diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 053d0ace0..335f7271e 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -54,15 +54,15 @@ statmodeprint(mode_t mode, char *outbuf, int flags) } if (flags & STF_STRING) { static const char *modes = "?rwxrwxrwx"; - static const mode_t mflags[9] = { #ifdef __CYGWIN__ - 0 + static mode_t mflags[9] = { 0 }; #else + static const mode_t mflags[9] = { S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH -#endif }; +#endif const mode_t *mfp = mflags; char pm[11]; int i; -- cgit 1.4.1