comparison lib/fts.c @ 40148:5be6b690b930

fts: Optimize on Android. * lib/fts.c: Treat Android like Linux.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 04:57:27 +0100
parents b06060465f09
children c39a0edd90d7
comparison
equal deleted inserted replaced
40147:69f945816225 40148:5be6b690b930
651 /* Leaf optimization is not only OK: it is useful for avoiding 651 /* Leaf optimization is not only OK: it is useful for avoiding
652 stat calls, because dirent.d_type does not work. */ 652 stat calls, because dirent.d_type does not work. */
653 NOSTAT_LEAF_OPTIMIZATION 653 NOSTAT_LEAF_OPTIMIZATION
654 }; 654 };
655 655
656 #if defined __linux__ \ 656 #if (defined __linux__ || defined __ANDROID__) \
657 && HAVE_SYS_VFS_H && HAVE_FSTATFS && HAVE_STRUCT_STATFS_F_TYPE 657 && HAVE_SYS_VFS_H && HAVE_FSTATFS && HAVE_STRUCT_STATFS_F_TYPE
658 658
659 # include <sys/vfs.h> 659 # include <sys/vfs.h>
660 660
661 /* Linux-specific constants from coreutils' src/fs.h */ 661 /* Linux-specific constants from coreutils' src/fs.h */