chiark / gitweb /
Fix service file to match installed elogind binary location
[elogind.git] / src / basic / login-util.h
index a79f20c1b1e6b1a3f507de8125effeae0ae4e748..a71ebd4ef4734a8f7779208aa2ef860095676d9b 100644 (file)
@@ -1,4 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+#pragma once
 
 /***
   This file is part of systemd.
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#pragma once
-
 #include <stdbool.h>
+#include <unistd.h>
 
 bool session_id_valid(const char *id);
+
+#if 0 /// UNNEEDED by elogind
+static inline bool logind_running(void) {
+        return access("/run/systemd/seats/", F_OK) >= 0;
+}
+#endif // 0