aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bcc/10-include-stddef.patch
blob: 6751c69aa4b85c86fcacb766fcac0a40d98b668a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/src/cc/api/BPF.cc b/src/cc/api/BPF.cc
index 473784c0..e3fb2d3f 100644
--- a/src/cc/api/BPF.cc
+++ b/src/cc/api/BPF.cc
@@ -15,6 +15,7 @@
  */
 
 #include <linux/bpf.h>
+#include <linux/stddef.h>
 #include <linux/perf_event.h>
 #include <unistd.h>
 #include <cstdio>
diff --git a/src/cc/api/BPFTable.cc b/src/cc/api/BPFTable.cc
index 67e8a8f2..eab58610 100644
--- a/src/cc/api/BPFTable.cc
+++ b/src/cc/api/BPFTable.cc
@@ -16,6 +16,7 @@
 
 #include <fcntl.h>
 #include <linux/elf.h>
+#include <linux/stddef.h>
 #include <linux/perf_event.h>
 #include <sys/epoll.h>
 #include <unistd.h>
diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c
index 9b0024dc..1aa6c9a6 100644
--- a/src/cc/libbpf.c
+++ b/src/cc/libbpf.c
@@ -25,6 +25,7 @@
 #include <linux/bpf.h>
 #include <linux/bpf_common.h>
 #include <linux/if_packet.h>
+#include <linux/stddef.h>
 #include <linux/perf_event.h>
 #include <linux/pkt_cls.h>
 #include <linux/rtnetlink.h>
diff --git a/src/cc/perf_reader.c b/src/cc/perf_reader.c
index 3cab0153..c378559e 100644
--- a/src/cc/perf_reader.c
+++ b/src/cc/perf_reader.c
@@ -25,6 +25,7 @@
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <unistd.h>
+#include <linux/stddef.h>
 #include <linux/perf_event.h>
 
 #include "libbpf.h"