From b4f3a3ad06266ed7a089c6c4783c495826e55521 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 23 May 2025 13:36:55 +0200 Subject: [PATCH] core: Add missing bpf-dlopen.h includes to bpf skeleton headers --- src/core/bpf/restrict_fs/restrict-fs-skel.h | 2 ++ src/core/bpf/restrict_ifaces/restrict-ifaces-skel.h | 2 ++ src/core/bpf/socket_bind/socket-bind-skel.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/core/bpf/restrict_fs/restrict-fs-skel.h b/src/core/bpf/restrict_fs/restrict-fs-skel.h index 412cf62eda..825b8131f9 100644 --- a/src/core/bpf/restrict_fs/restrict-fs-skel.h +++ b/src/core/bpf/restrict_fs/restrict-fs-skel.h @@ -6,6 +6,8 @@ * fine given that LGPL-2.1-or-later downgrades to GPL if needed. */ +#include "bpf-dlopen.h" + /* libbpf is used via dlopen(), so rename symbols */ #define bpf_object__open_skeleton sym_bpf_object__open_skeleton #define bpf_object__load_skeleton sym_bpf_object__load_skeleton diff --git a/src/core/bpf/restrict_ifaces/restrict-ifaces-skel.h b/src/core/bpf/restrict_ifaces/restrict-ifaces-skel.h index f937490954..f0675f270b 100644 --- a/src/core/bpf/restrict_ifaces/restrict-ifaces-skel.h +++ b/src/core/bpf/restrict_ifaces/restrict-ifaces-skel.h @@ -6,6 +6,8 @@ * fine given that LGPL-2.1-or-later downgrades to GPL if needed. */ +#include "bpf-dlopen.h" + /* libbpf is used via dlopen(), so rename symbols */ #define bpf_object__open_skeleton sym_bpf_object__open_skeleton #define bpf_object__load_skeleton sym_bpf_object__load_skeleton diff --git a/src/core/bpf/socket_bind/socket-bind-skel.h b/src/core/bpf/socket_bind/socket-bind-skel.h index e0d16269cd..c92eae002d 100644 --- a/src/core/bpf/socket_bind/socket-bind-skel.h +++ b/src/core/bpf/socket_bind/socket-bind-skel.h @@ -6,6 +6,8 @@ * fine given that LGPL-2.1-or-later downgrades to GPL if needed. */ +#include "bpf-dlopen.h" + /* libbpf is used via dlopen(), so rename symbols */ #define bpf_object__open_skeleton sym_bpf_object__open_skeleton #define bpf_object__load_skeleton sym_bpf_object__load_skeleton