libbpf: fix build warning on setns (#1246)
The macro _GNU_SOURCE should be defined to pick up the function
declaration for setns. Fixes build warning:
"src/cc/libbpf.c:482:7: warning: implicit declaration of
function 'setns' [-Wimplicit-function-declaration]
if (setns(target_fd, CLONE_NEWNS)) {"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Showing
Please register or sign in to comment