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 <[email protected]>
---
 coreutils/stat.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/coreutils/stat.c b/coreutils/stat.c
index 2797719..9a6cb07 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -99,9 +99,11 @@ 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";
+#ifndef __ANDROID__
        if (S_TYPEISMQ(st))        return "message queue";
        if (S_TYPEISSEM(st))       return "semaphore";
        if (S_TYPEISSHM(st))       return "shared memory object";
+#endif
 #ifdef S_TYPEISTMO
        if (S_TYPEISTMO(st))       return "typed memory object";
 #endif
-- 
1.7.10

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to