From d313b1fd7440f97f7036c5b023228205a3e768d2 Mon Sep 17 00:00:00 2001 From: Firas Khana Date: Fri, 6 Nov 2026 23:04:57 +0300 Subject: [PATCH 1/2] Add conditional include for sm.h based on AUTO_RELOAD --- src/cgroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cgroup.c b/src/cgroup.c index 79922e5e..98dd0f7b 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -42,6 +42,9 @@ #include "iwatch.h" #include "conf.h" #include "service.h" +#ifdef AUTO_RELOAD +#include "sm.h" +#endif #include "log.h" #include "util.h" From 90512b07a0056a5088b4949ffee4f240771fc52a Mon Sep 17 00:00:00 2001 From: Firas Khana Date: Fri, 6 Nov 2026 23:09:13 +0300 Subject: [PATCH 2/2] Add conditional include for sm.h based on AUTO_RELOAD --- src/conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conf.c b/src/conf.c index 22e5e79d..fb3f954e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -67,6 +67,9 @@ #include "legacy.h" #include "private.h" #include "service.h" +#ifdef AUTO_RELOAD +#include "sm.h" +#endif #include "helpers.h" #include "util.h"