diff options
-rw-r--r-- | coreutils/stat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 2797719dd..3fb212f0f 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -99,9 +99,15 @@ static const char *file_type(const struct stat *st) | |||
99 | if (S_ISFIFO(st->st_mode)) return "fifo"; | 99 | if (S_ISFIFO(st->st_mode)) return "fifo"; |
100 | if (S_ISLNK(st->st_mode)) return "symbolic link"; | 100 | if (S_ISLNK(st->st_mode)) return "symbolic link"; |
101 | if (S_ISSOCK(st->st_mode)) return "socket"; | 101 | if (S_ISSOCK(st->st_mode)) return "socket"; |
102 | #ifdef S_TYPEISMQ | ||
102 | if (S_TYPEISMQ(st)) return "message queue"; | 103 | if (S_TYPEISMQ(st)) return "message queue"; |
104 | #endif | ||
105 | #ifdef S_TYPEISSEM | ||
103 | if (S_TYPEISSEM(st)) return "semaphore"; | 106 | if (S_TYPEISSEM(st)) return "semaphore"; |
107 | #endif | ||
108 | #ifdef S_TYPEISSHM | ||
104 | if (S_TYPEISSHM(st)) return "shared memory object"; | 109 | if (S_TYPEISSHM(st)) return "shared memory object"; |
110 | #endif | ||
105 | #ifdef S_TYPEISTMO | 111 | #ifdef S_TYPEISTMO |
106 | if (S_TYPEISTMO(st)) return "typed memory object"; | 112 | if (S_TYPEISTMO(st)) return "typed memory object"; |
107 | #endif | 113 | #endif |