From aa8369e4a2f1c27a68ff887160e75a23124096a8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 5 Jul 2020 21:05:21 +0200 Subject: [PATCH] argp: Trim module dependencies. * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h. * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl. --- ChangeLog | 6 ++++++ lib/argp-namefrob.h | 2 +- modules/argp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1396c94f50..5b3170787e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-07-05 Bruno Haible + + argp: Trim module dependencies. + * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h. + * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl. + 2020-07-05 Bruno Haible basename-lgpl: New module. diff --git a/lib/argp-namefrob.h b/lib/argp-namefrob.h index 022b8800ec..50c62e9d8a 100644 --- a/lib/argp-namefrob.h +++ b/lib/argp-namefrob.h @@ -146,7 +146,7 @@ #elif defined GNULIB_ARGP_EXTERN_BASENAME extern char *__argp_base_name (const char *arg); #else -# include "dirname.h" +# include "basename-lgpl.h" # define __argp_base_name last_component #endif diff --git a/modules/argp b/modules/argp index 125046ad89..50fde11904 100644 --- a/modules/argp +++ b/modules/argp @@ -24,7 +24,7 @@ m4/argp.m4 Depends-on: alloca -dirname-lgpl +basename-lgpl extern-inline getopt-gnu strchrnul -- 2.39.5