This will only be defined if liblxc was even compiled with bpf supported.
Support itself will be determined at runtime by liblxc itself.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
#include <stdio.h>
#include <stdlib.h>
+#include "config.h"
+
/*
* api_extensions is the list of all API extensions in the order they were
* added.
"network_gateway_device_route",
"network_phys_macvlan_mtu",
"network_veth_router",
+#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
+ "cgroup2_devices",
+#endif
};
static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions);