projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9da2d0
)
remove.c: avoid compile failure on OS/2
author
Jim Meyering
<meyering@redhat.com>
Mon, 6 Oct 2008 05:31:50 +0000
(07:31 +0200)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/remove.c
b/src/remove.c
index 9bcd6f7c2d82fcebc03024cb73c79e1eeb3f06ea..2e342c0922845f1bd2353405c8fc10f6ebcdf343 100644
(file)
--- 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"