summaryrefslogtreecommitdiff
path: root/src/basic/hostname-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-06-08 08:49:12 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:58 +0200
commitb4f4684f3a95c915491cd7845911ecdf2622b2c2 (patch)
tree75d5cf09c96acae48f9578294b587afef1391706 /src/basic/hostname-util.c
parent3e00151fe64164d2a5f2e231120cb4247ec1794f (diff)
Prep v230: Add utmp support to make wall message to work properly.
Diffstat (limited to 'src/basic/hostname-util.c')
-rw-r--r--src/basic/hostname-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c
index d8d05df3c..a5cb62eb6 100644
--- a/src/basic/hostname-util.c
+++ b/src/basic/hostname-util.c
@@ -45,6 +45,7 @@ bool hostname_is_set(void) {
return true;
}
+#endif // 0
char* gethostname_malloc(void) {
struct utsname u;
@@ -61,6 +62,7 @@ char* gethostname_malloc(void) {
return strdup(u.nodename);
}
+#if 0 /// UNNEEDED by elogind
int gethostname_strict(char **ret) {
struct utsname u;
char *k;