diff options
author | Bruno Haible <bruno@clisp.org> | 2021-08-07 23:30:53 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-08-07 23:30:53 +0200 |
commit | 9af2d6c99c9353a4160c99d84134330c1beab246 (patch) | |
tree | 6f2d139ab9f23cf6fc31be4678fc30ccff5b9fda /modules | |
parent | d3c1eca926275d7138cdfd2eaebcf5de472fcdbf (diff) | |
download | gnulib-9af2d6c99c9353a4160c99d84134330c1beab246.tar.gz |
xgetdomainname: Ensure .c file starts with '#include <config.h>'.
* lib/xgetaname-impl.h: New file, based on lib/xgethostname.c.
* lib/xgethostname.c: Move implementation to lib/xgetaname-impl.h.
* lib/xgetdomainname.c: Include <config.h>. Include xgetaname-impl.h
instead of xgethostname.c.
* modules/xgethostname (Files): Add lib/xgetaname-impl.h.
* modules/xgetdomainname (Files): Likewise.
(Depends-on): Remove xgethostname. Add free-posix, xalloc.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/xgetdomainname | 4 | ||||
-rw-r--r-- | modules/xgethostname | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/xgetdomainname b/modules/xgetdomainname index c1417c8ef6..ec68362089 100644 --- a/modules/xgetdomainname +++ b/modules/xgetdomainname @@ -4,10 +4,12 @@ Return machine's domainname, without size limitations. Files: lib/xgetdomainname.h lib/xgetdomainname.c +lib/xgetaname-impl.h Depends-on: +free-posix getdomainname -xgethostname +xalloc configure.ac: diff --git a/modules/xgethostname b/modules/xgethostname index 846df1c004..ec25db0291 100644 --- a/modules/xgethostname +++ b/modules/xgethostname @@ -4,6 +4,7 @@ Return machine's hostname, without size limitations. Files: lib/xgethostname.h lib/xgethostname.c +lib/xgetaname-impl.h Depends-on: free-posix |