chiark / gitweb /
core: Break circular dependency between unit.h and cgroup.h
authorFelipe Sateler <fsateler@debian.org>
Tue, 15 May 2018 18:12:22 +0000 (14:12 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/core/cgroup.h

index 4e0155b11cbea047e28eaa75a99eea9d46802b64..a6b705aa65eb598e8a11be1c638d62359689ca0d 100644 (file)
@@ -128,7 +128,8 @@ typedef enum CGroupIPAccountingMetric {
         _CGROUP_IP_ACCOUNTING_METRIC_INVALID = -1,
 } CGroupIPAccountingMetric;
 
-#include "unit.h"
+typedef struct Unit Unit;
+typedef struct Manager Manager;
 
 void cgroup_context_init(CGroupContext *c);
 void cgroup_context_done(CGroupContext *c);