* backupfile, backup-rename: Trim dependencies
@ 2021-04-04 12:57 Bruno Haible
0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2021-04-04 12:57 UTC (permalink / raw)
To: bug-gnulib
The module 'backupfile' has a couple of unneeded dependencies. This patch
fixes it.
2021-04-04 Bruno Haible <bruno@clisp.org>
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:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-04 12:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-04 12:57 backupfile, backup-rename: Trim dependencies Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).