51 lines
1.0 KiB
Diff
51 lines
1.0 KiB
Diff
--- a/src/cc/api/BPFTable.cc
|
|
+++ b/src/cc/api/BPFTable.cc
|
|
@@ -14,6 +14,7 @@
|
|
* limitations under the License.
|
|
*/
|
|
|
|
+#include <linux/stddef.h>
|
|
#include <fcntl.h>
|
|
#include <linux/elf.h>
|
|
#include <linux/perf_event.h>
|
|
--- a/src/cc/api/BPF.cc
|
|
+++ b/src/cc/api/BPF.cc
|
|
@@ -14,6 +14,7 @@
|
|
* limitations under the License.
|
|
*/
|
|
|
|
+#include <linux/stddef.h>
|
|
#include <linux/bpf.h>
|
|
#include <linux/perf_event.h>
|
|
#include <unistd.h>
|
|
--- a/src/cc/perf_reader.c
|
|
+++ b/src/cc/perf_reader.c
|
|
@@ -14,6 +14,7 @@
|
|
* limitations under the License.
|
|
*/
|
|
|
|
+#include <linux/stddef.h>
|
|
#include <inttypes.h>
|
|
#include <poll.h>
|
|
#include <stdio.h>
|
|
--- a/src/cc/libbpf/src/libbpf.c
|
|
+++ b/src/cc/libbpf/src/libbpf.c
|
|
@@ -12,6 +12,7 @@
|
|
#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
+#include <linux/stddef.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
--- a/src/cc/libbpf.c
|
|
+++ b/src/cc/libbpf.c
|
|
@@ -17,6 +17,7 @@
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
|
|
+#include <linux/stddef.h>
|
|
#include <arpa/inet.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|