]> Savannah Git Hosting - gnulib.git/commit
fts: make debug version compilable again
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2022 23:31:33 +0000 (15:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2022 23:32:04 +0000 (15:32 -0800)
commitfc38a5235724d713804e885b17a6110b7eae7a9e
tree8e43d6cf6025ea3911e5bc55f26839804ffa6634
parent985730d5ecdc3b464105e13e30d6df6627b0233d
fts: make debug version compilable again

This fixes things in what I hope is a better way than the
fd-only approach proposed by Kamil Dudka here:
https://lists.gnu.org/archive/html/bug-gnulib/2018-03/msg00079.html
https://lists.gnu.org/archive/html/bug-gnulib/2018-03/msg00080.html
* lib/fts.c (GNULIB_FTS_DEBUG): Rename from FTS_DEBUG,
to avoid collision with coreutils symbol.
Do not include <stdint.h> (not needed, since we include <stdint.h>)
or "getcwdat.h" (no longer exists).
(fd_ring_check, fd_ring_print): Add forward decls.
(struct devino): New type.
(PRINT_DEVINO): New macro.
(getdevino): New static function.
(fd_ring_print): Do nothing if not debugging.
(fd_ring_print, fd_ring_check): Use getdevino instead of getcwdat.
The output isn’t as good, but at least it compiles and runs.
ChangeLog
lib/fts.c