bcc: musl fixes.
This commit is contained in:
parent
47065b7301
commit
f76b148938
|
@ -1,10 +1,50 @@
|
||||||
--- src/cc/ns_guard.h.orig
|
--- src/cc/api/BPFTable.cc.orig
|
||||||
+++ src/cc/ns_guard.h
|
+++ 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>
|
||||||
|
--- src/cc/api/BPF.cc.orig
|
||||||
|
+++ 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>
|
||||||
|
--- src/cc/perf_reader.c.orig
|
||||||
|
+++ 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>
|
||||||
|
--- src/cc/libbpf/src/libbpf.c.orig
|
||||||
|
+++ 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>
|
||||||
|
--- src/cc/libbpf.c.orig
|
||||||
|
+++ src/cc/libbpf.c
|
||||||
@@ -17,6 +17,7 @@
|
@@ -17,6 +17,7 @@
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#pragma once
|
+#include <linux/stddef.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
+#include <sys/types.h>
|
#include <errno.h>
|
||||||
#include <memory>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "file_desc.h"
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'bcc'
|
# Template file for 'bcc'
|
||||||
pkgname=bcc
|
pkgname=bcc
|
||||||
version=0.9.0
|
version=0.9.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DREVISION=${version}"
|
configure_args="-DREVISION=${version}"
|
||||||
hostmakedepends="flex"
|
hostmakedepends="flex"
|
||||||
|
|
Loading…
Reference in New Issue