Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574307 > unrolled thread

[PATCH net-next v1 1/7] bpf: Add missing header to the library

Started byMickaël Salaün <mic@digikod.net>
First post2017-02-06 00:20 +0100
Last post2017-02-06 00:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next v1 1/7] bpf: Add missing header to the library Mickaël Salaün <mic@digikod.net> - 2017-02-06 00:20 +0100

#1574307 — [PATCH net-next v1 1/7] bpf: Add missing header to the library

FromMickaël Salaün <mic@digikod.net>
Date2017-02-06 00:20 +0100
Subject[PATCH net-next v1 1/7] bpf: Add missing header to the library
Message-ID<t7Eg9-5mH-3@gated-at.bofh.it>
Including stddef.h is needed to define size_t.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Wang Nan <wangnan0@huawei.com>
---
 tools/lib/bpf/bpf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h
index a2f9853dd882..df6e186da788 100644
--- a/tools/lib/bpf/bpf.h
+++ b/tools/lib/bpf/bpf.h
@@ -22,6 +22,7 @@
 #define __BPF_BPF_H
 
 #include <linux/bpf.h>
+#include <stddef.h>
 
 int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size,
 		   int max_entries, __u32 map_flags);
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web