From: Felipe Sateler Date: Tue, 15 May 2018 18:12:22 +0000 (-0400) Subject: core: Break circular dependency between unit.h and cgroup.h X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=89206c9053e756697b0f1fce2ed692dc395c9fd5;p=elogind.git core: Break circular dependency between unit.h and cgroup.h --- diff --git a/src/core/cgroup.h b/src/core/cgroup.h index 4e0155b11..a6b705aa6 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -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);