]> Savannah Git Hosting - gnulib.git/commit
xgetdomainname: Ensure .c file starts with '#include <config.h>'.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 21:30:53 +0000 (23:30 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 21:30:53 +0000 (23:30 +0200)
commit9af2d6c99c9353a4160c99d84134330c1beab246
tree6f2d139ab9f23cf6fc31be4678fc30ccff5b9fda
parentd3c1eca926275d7138cdfd2eaebcf5de472fcdbf
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.
ChangeLog
lib/xgetaname-impl.h [new file with mode: 0644]
lib/xgetdomainname.c
lib/xgethostname.c
modules/xgetdomainname
modules/xgethostname