summaryrefslogtreecommitdiff
path: root/modules/xgethostname
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-08-07 23:30:53 +0200
committerBruno Haible <bruno@clisp.org>2021-08-07 23:30:53 +0200
commit9af2d6c99c9353a4160c99d84134330c1beab246 (patch)
tree6f2d139ab9f23cf6fc31be4678fc30ccff5b9fda /modules/xgethostname
parentd3c1eca926275d7138cdfd2eaebcf5de472fcdbf (diff)
downloadgnulib-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/xgethostname')
-rw-r--r--modules/xgethostname1
1 files changed, 1 insertions, 0 deletions
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