From: Antonio Alvarez Feijoo Date: Wed, 18 Sep 2024 09:29:40 +0000 (+0200) Subject: nsresourced: fix build without libbpf X-Git-Tag: v257-rc1~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb4c82b643ba4494792f16faf2af7b017432e012;p=thirdparty%2Fsystemd.git 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 --- 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"