[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210506231158.250926-1-yanjun.zhu@intel.com>
Date: Thu, 6 May 2021 19:11:58 -0400
From: Zhu Yanjun <yanjun.zhu@...el.com>
To: mariuszx.dudek@...el.com, netdev@...r.kernel.org, bjorn@...nel.org,
magnus.karlsson@...el.com, jonathan.lemon@...il.com
Cc: Zhu Yanjun <zyjzyj2000@...il.com>
Subject: [PATCH 1/1] samples: bpf: fix the compiling error
From: Zhu Yanjun <zyjzyj2000@...il.com>
When compiling, the following error will appear.
"
samples/bpf//xdpsock_user.c:27:10: fatal error: sys/capability.h:
No such file or directory
"
Now capability.h is in linux directory.
Fixes: 3627d9702d78 ("samples/bpf: Sample application for eBPF load and socket creation split")
Signed-off-by: Zhu Yanjun <zyjzyj2000@...il.com>
---
samples/bpf/xdpsock_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/bpf/xdpsock_user.c b/samples/bpf/xdpsock_user.c
index aa696854be78..44200aa694cb 100644
--- a/samples/bpf/xdpsock_user.c
+++ b/samples/bpf/xdpsock_user.c
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/capability.h>
+#include <linux/capability.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/socket.h>
--
2.27.0
Powered by blists - more mailing lists