From a243128d1fcfc378df9fce1b4997148a17ef23a5 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 24 Aug 2021 16:19:03 +0100 Subject: [PATCH] core: Remove circular include service.h includes socket.h and socket.h includes service.h. Move service.h include from socket.h to socket.c to remove the circular dependency. --- src/core/socket.c | 1 + src/core/socket.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/socket.c b/src/core/socket.c index 675ad3c0250..ceaf39bdd3e 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -34,6 +34,7 @@ #include "process-util.h" #include "selinux-util.h" #include "serialize.h" +#include "service.h" #include "signal-util.h" #include "smack-util.h" #include "socket.h" diff --git a/src/core/socket.h b/src/core/socket.h index a65195f2aac..6813bdcf8c8 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -5,7 +5,6 @@ typedef struct Socket Socket; typedef struct SocketPeer SocketPeer; #include "mount.h" -#include "service.h" #include "socket-util.h" #include "unit.h"