The module 'backupfile' has a couple of unneeded dependencies. This patch fixes it.
2021-04-04 Bruno Haible <[email protected]> backupfile, backup-rename: Trim dependencies. * lib/backupfile.h: Add comment. * lib/backupfile.c: Include <dirent.h>, for readdir() declaration. * modules/backup-rename (Depends-on): Remove dirent-safer, fcntl. Add fcntl-h. * modules/backupfile (Depends-on): Likewise. Remove xalloc. Add xalloc-die. diff --git a/lib/backupfile.c b/lib/backupfile.c index 4cef0fc..c53e3f3 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -22,6 +22,7 @@ #include "backup-internal.h" +#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <stdbool.h> diff --git a/lib/backupfile.h b/lib/backupfile.h index 2a05995..3494770 100644 --- a/lib/backupfile.h +++ b/lib/backupfile.h @@ -19,6 +19,7 @@ #ifndef BACKUPFILE_H_ #define BACKUPFILE_H_ +/* Get AT_FDCWD, as a convenience for users of this file. */ #include <fcntl.h> #ifdef __cplusplus diff --git a/modules/backup-rename b/modules/backup-rename index d4bd339..4497b33 100644 --- a/modules/backup-rename +++ b/modules/backup-rename @@ -15,8 +15,7 @@ basename-lgpl c99 closedir d-ino -dirent-safer -fcntl +fcntl-h idx memcmp opendirat diff --git a/modules/backupfile b/modules/backupfile index fd15ec5..41cf99b 100644 --- a/modules/backupfile +++ b/modules/backupfile @@ -15,8 +15,7 @@ basename-lgpl c99 closedir d-ino -dirent-safer -fcntl +fcntl-h idx memcmp opendirat @@ -24,7 +23,7 @@ readdir renameatu stdbool stdint -xalloc +xalloc-die xalloc-oversized configure.ac:
