Use pretty hostnames only when systemd is supported. (#5)

This commit is contained in:
galister
2023-06-21 19:15:03 +05:00
committed by GitHub
parent e7795540b2
commit bb421d6a27
4 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,4 @@
#include "hostname.h"
#include <string>
#include <unistd.h>
@@ -11,3 +10,4 @@ std::string hostname()
return std::string(buf);
return "unknown";
}