1 Description: Fixes gnulib "Operation not supported" error when grepping -r
2 directories with more than 100000 files.
3 The bug is already fixed in the upstream development branch.
4 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041588
5 Author: Vincent Lefevre <vincent@vinc17.net>
8 diff -Naurd grep-3.11-orig/m4/dirfd.m4 grep-3.11/m4/dirfd.m4
9 --- grep-3.11~/m4/dirfd.m4 2023-04-29 11:03:00.000000000 +0200
10 +++ grep-3.11/m4/dirfd.m4 2023-07-21 19:40:41.345044696 +0200
15 - dnl Replace only if the system declares dirfd already.
16 - if test $ac_cv_have_decl_dirfd = yes; then
19 dnl Replace dirfd() on native Windows, to support fdopendir().
20 AC_REQUIRE([gl_DIRENT_DIR])
21 if test $DIR_HAS_FD_MEMBER = 0; then