From fb4c82b643ba4494792f16faf2af7b017432e012 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Wed, 18 Sep 2024 11:29:40 +0200 Subject: [PATCH] nsresourced: fix build without libbpf ``` In file included from ../src/nsresourced/nsresourced-manager.c:9: ../src/shared/bpf-link.h:5:10: fatal error: bpf/libbpf.h: No such file or directory 5 | #include | ^~~~~~~~~~~~~~ ``` Follow-up for 46718d344fdaaaf523d854a0c728197e7406a55a --- src/nsresourced/nsresourced-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nsresourced/nsresourced-manager.c b/src/nsresourced/nsresourced-manager.c index 43a00d6cefd..ab1cd0a7c13 100644 --- a/src/nsresourced/nsresourced-manager.c +++ b/src/nsresourced/nsresourced-manager.c @@ -6,7 +6,9 @@ #include "sd-daemon.h" #include "bpf-dlopen.h" +#if HAVE_VMLINUX_H #include "bpf-link.h" +#endif #include "build-path.h" #include "common-signal.h" #include "env-util.h" -- 2.47.3