netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rafael Buchbinder <rafi@rbk.ms>
To: netfilter-devel@vger.kernel.org
Cc: Rafael Buchbinder <rafi@rbk.ms>
Subject: [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration
Date: Sun, 10 Sep 2017 10:44:53 +0300	[thread overview]
Message-ID: <20170910074453.17462-1-rafi@rbk.ms> (raw)

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


             reply	other threads:[~2017-09-10  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-10  7:44 Rafael Buchbinder [this message]
2017-09-10 20:06 ` [PATCH] extensions: libxt_bpf: fix missing __NR_bpf declaration Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170910074453.17462-1-rafi@rbk.ms \
    --to=rafi@rbk.ms \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).