diff options
author | Tias Guns <tias@ulyssis.org> | 2012-06-03 16:43:06 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-10 14:20:42 +0200 |
commit | a1ec8419139aeb83c473d1543987a69bfbe86725 (patch) | |
tree | 82f4b0cb4828a0a6950a9687f88df9c49a4d52a2 | |
parent | 64f763b42a43cbf36e401690ff6767c25575e520 (diff) | |
download | busybox-a1ec8419139aeb83c473d1543987a69bfbe86725.tar.gz |
android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c
patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)'
https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox
Signed-off-by: Tias Guns <tias@ulyssis.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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) if (S_ISFIFO(st->st_mode)) return "fifo"; if (S_ISLNK(st->st_mode)) return "symbolic link"; if (S_ISSOCK(st->st_mode)) return "socket"; +#ifdef S_TYPEISMQ if (S_TYPEISMQ(st)) return "message queue"; +#endif +#ifdef S_TYPEISSEM if (S_TYPEISSEM(st)) return "semaphore"; +#endif +#ifdef S_TYPEISSHM if (S_TYPEISSHM(st)) return "shared memory object"; +#endif #ifdef S_TYPEISTMO if (S_TYPEISTMO(st)) return "typed memory object"; #endif |