Use pretty hostnames only when systemd is supported. (#5)
This commit is contained in:
+1
-1
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user