summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-06 07:31:50 +0200
committerJim Meyering <meyering@redhat.com>2008-10-06 07:31:50 +0200
commited0a1c9f943ed112c7ef24b8ab85d530ce5ca324 (patch)
tree59611197282931beec822ac908796467ee068004
parentf9da2d0e8759db7927aada432ea478df312580d5 (diff)
downloadcoreutils-ed0a1c9f943ed112c7ef24b8ab85d530ce5ca324.tar.xz
remove.c: avoid compile failure on OS/2
* src/remove.c (dirent_inode_sort_may_be_useful): Guard also with "#if defined __linux__". Reported by Elbert Pol.
-rw-r--r--src/remove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c
index 9bcd6f7c2..2e342c092 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -1276,7 +1276,8 @@ dirent_count (struct stat const *st)
return st->st_size / 16;
}
-# if HAVE_SYS_VFS_H && HAVE_FSTATFS && HAVE_STRUCT_STATFS_F_TYPE
+#if defined __linux__ \
+ && HAVE_SYS_VFS_H && HAVE_FSTATFS && HAVE_STRUCT_STATFS_F_TYPE
# include <sys/vfs.h>
# include "fs.h"