From: Jim Meyering Date: Mon, 6 Oct 2008 05:31:50 +0000 (+0200) Subject: remove.c: avoid compile failure on OS/2 X-Git-Tag: v7.1~192 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed0a1c9f943ed112c7ef24b8ab85d530ce5ca324;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/remove.c b/src/remove.c index 9bcd6f7c2d..2e342c0922 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 # include "fs.h"