From 5855e70d18d7d6705dbe41cd9045fe8a772c885a Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Thu, 23 Mar 2023 12:00:39 +0800 Subject: [PATCH] [1.8.2][CentOS 7] Missing `#include ` The newly introduced `src/libcrun/scheduler.c` by https://github.com/containers/crun/pull/1166 missing `#include ` for CentOS 7, which result with missing `SCHED_DEADLINE`. Moreover, for CentOS 7 build we also need to enable `-std=c99`, or upgrade build tools to gcc 11 with `. /opt/rh/devtoolset-11/enable` before build. See https://stackoverflow.com/a/50085457 See https://github.com/alvistack/containers-crun/blob/alvistack/1.8.2/crun.spec Signed-off-by: Wong Hoi Sing Edison --- src/libcrun/scheduler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcrun/scheduler.c b/src/libcrun/scheduler.c index 3e0a4f9014..ca8ca0e92f 100644 --- a/src/libcrun/scheduler.c +++ b/src/libcrun/scheduler.c @@ -22,6 +22,7 @@ #include "linux.h" #include "utils.h" #include +#include #include #include #include