2003-03-07 Jim Meyering <jim@meyering.net>
+ * getcwd.c: #undef getcwd only after *all* included header files.
+ Declare getcwd unconditionally. The problem was that same.h
+ included config.h, and that defined getcwd to rpl_getcwd a second
+ time (after the original #undef), and led to the rpl_getcwd
+ function calling itself endlessly. This was the cause of at least
+ the `du' test failures on IRIX 6.5, reported by Nelson Beebe.
+
* same.h (same_name): Remove unnecessary inclusion of config.h.
It also happened to lead to infinite recursion in getcwd.c.
(PARAMS): Remove definition and use.
2003-03-06 Jim Meyering <jim@meyering.net>
- * getcwd.c: #undef getcwd before including system headers.
- This avoid a build failure on IRIX 6.5. Reported by Nelson Beebe.
-
- Fix a bug that causes du to dump core on 64-bit systems.
* ftw.c (ftw_startup): Declare `func' parameter to be of type
NFTW_FUNC_T, not void* which may be smaller on 64-bit systems.
Remove now-unnecessary cast.