[PATCH 23/32] tools lib bpf: Add missing header to the library

From: Arnaldo Carvalho de Melo
Date: Thu Feb 09 2017 - 20:41:53 EST


From: MickaÃl SalaÃn <mic@xxxxxxxxxxx>

Include stddef.h to define size_t.

Signed-off-by: MickaÃl SalaÃn <mic@xxxxxxxxxxx>
Acked-by: Wang Nan <wangnan0@xxxxxxxxxx>
Cc: Alexei Starovoitov <ast@xxxxxx>
Cc: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Cc: Joe Stringer <joe@xxxxxxx>
Link: http://lkml.kernel.org/r/20170207205609.8035-2-mic@xxxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
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.9.3