void-packages/srcpkgs/bcc/patches/musl.patch
2022-01-19 14:34:23 +01:00

59 lines
1.3 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>
--- a/src/cc/libbpf/src/gen_loader.c
+++ b/src/cc/libbpf/src/gen_loader.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 Facebook */
+#include <linux/stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>