X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fhostname-util.c;h=b9ab884367d2909b2564a324702690268cda539d;hb=b5e3f1e02c74ad1c8a070a4b2ddd1398528c337e;hp=206959dad75ead0766b3fdc4abc6253be1cc3e73;hpb=da2587d5154e11d4e643e326793f3ce2cc48dee6;p=elogind.git
diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c
index 206959dad..b9ab88436 100644
--- a/src/basic/hostname-util.c
+++ b/src/basic/hostname-util.c
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
@@ -19,14 +17,21 @@
along with systemd; If not, see .
***/
-#include
+#if defined(__GLIBC__)
+# include
+#endif // defined(__GLIBC__)
+#include
+#include
+#include
+#include
#include
+#include
//#include "fd-util.h"
#include "fileio.h"
#include "hostname-util.h"
+//#include "macro.h"
#include "string-util.h"
-#include "util.h"
#if 0 /// UNNEEDED by elogind
bool hostname_is_set(void) {
@@ -74,7 +79,7 @@ static bool hostname_valid_char(char c) {
* allow_trailing_dot is true and at least two components are present
* in the name. Note that due to the restricted charset and length
* this call is substantially more conservative than
- * dns_domain_is_valid().
+ * dns_name_is_valid().
*/
bool hostname_is_valid(const char *s, bool allow_trailing_dot) {
unsigned n_dots = 0;