remove.c: avoid compile failure on OS/2
authorJim Meyering <meyering@redhat.com>
Mon, 6 Oct 2008 05:31:50 +0000 (07:31 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 6 Oct 2008 05:31:50 +0000 (07:31 +0200)
* src/remove.c (dirent_inode_sort_may_be_useful): Guard also with
"#if defined __linux__".  Reported by Elbert Pol.

src/remove.c

index 9bcd6f7c2d82fcebc03024cb73c79e1eeb3f06ea..2e342c0922845f1bd2353405c8fc10f6ebcdf343 100644 (file)
@@ -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"