Make libbpf headers possible to include

This commit is contained in:
2025-09-21 01:17:41 +05:30
parent 057d0be1d6
commit 5273b616ca
2 changed files with 15 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#include <pybind11/pybind11.h>
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
extern "C" {
#include "bpf/libbpf.h"
}
int add(int i, int j) {
return i + j;
}