netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration
@ 2017-09-10  7:44 Rafael Buchbinder
  2017-09-10 20:06 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Buchbinder @ 2017-09-10  7:44 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Rafael Buchbinder

This include is needed to compile the bpf_obj_get function properly,
as it brings in the __NR_bpf declaration.
---
 extensions/libxt_bpf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extensions/libxt_bpf.c b/extensions/libxt_bpf.c
index 92c445e8..9510c190 100644
--- a/extensions/libxt_bpf.c
+++ b/extensions/libxt_bpf.c
@@ -22,6 +22,8 @@
 #include <linux/bpf.h>
 #endif
 
+#include <linux/unistd.h>
+
 #define BCODE_FILE_MAX_LEN_B	1024
 
 enum {
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration
  2017-09-10  7:44 [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration Rafael Buchbinder
@ 2017-09-10 20:06 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-09-10 20:06 UTC (permalink / raw)
  To: Rafael Buchbinder; +Cc: netfilter-devel

On Sun, Sep 10, 2017 at 10:44:53AM +0300, Rafael Buchbinder wrote:
> This include is needed to compile the bpf_obj_get function properly,
> as it brings in the __NR_bpf declaration.

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-10 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-10  7:44 [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration Rafael Buchbinder
2017-09-10 20:06 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).