chiark / gitweb /
basic: include only what we use
[elogind.git] / src / basic / audit-util.c
index 4612297334156aa325b62894603120c30e45be50..da92ef32e15b5539790f39b905f98bf7800a5329 100644 (file)
@@ -20,7 +20,9 @@
 ***/
 
 #include <errno.h>
+#include <linux/netlink.h>
 #include <stdio.h>
+#include <sys/socket.h>
 
 #include "alloc-util.h"
 #include "audit-util.h"
@@ -30,7 +32,6 @@
 #include "parse-util.h"
 #include "process-util.h"
 #include "user-util.h"
-#include "util.h"
 
 int audit_session_from_pid(pid_t pid, uint32_t *id) {
         _cleanup_free_ char *s = NULL;
@@ -86,6 +87,7 @@ int audit_loginuid_from_pid(pid_t pid, uid_t *uid) {
         return 0;
 }
 
+#if 0 /// UNNEEDED by elogind
 bool use_audit(void) {
         static int cached_use = -1;
 
@@ -103,3 +105,4 @@ bool use_audit(void) {
 
         return cached_use;
 }
+#endif // 0