Fix compile with GCC 13
This commit is contained in:
parent
d0062119c7
commit
80533d1363
59
0001-Fix-compile-with-GCC-13.patch
Normal file
59
0001-Fix-compile-with-GCC-13.patch
Normal file
@ -0,0 +1,59 @@
|
||||
From c8926fa6c163e3e42cef2f0bfba7cbaa3f504a42 Mon Sep 17 00:00:00 2001
|
||||
From: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
Date: Mon, 23 Jan 2023 20:42:47 -0500
|
||||
Subject: [PATCH] Fix compile with GCC 13
|
||||
|
||||
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
---
|
||||
src/ast/int_parser.h | 1 +
|
||||
src/pcap_writer.h | 1 +
|
||||
src/usdt.h | 1 +
|
||||
src/utils.h | 1 +
|
||||
4 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/ast/int_parser.h b/src/ast/int_parser.h
|
||||
index 3dc2f7c2..d12481f9 100644
|
||||
--- a/src/ast/int_parser.h
|
||||
+++ b/src/ast/int_parser.h
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace bpftrace {
|
||||
diff --git a/src/pcap_writer.h b/src/pcap_writer.h
|
||||
index 870a6617..5f01c666 100644
|
||||
--- a/src/pcap_writer.h
|
||||
+++ b/src/pcap_writer.h
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
struct pcap;
|
||||
diff --git a/src/usdt.h b/src/usdt.h
|
||||
index c30fef2d..9e2d7bc4 100644
|
||||
--- a/src/usdt.h
|
||||
+++ b/src/usdt.h
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
diff --git a/src/utils.h b/src/utils.h
|
||||
index 8cc0bfd4..7c10ebdd 100644
|
||||
--- a/src/utils.h
|
||||
+++ b/src/utils.h
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
+#include <cstdint>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <optional>
|
||||
--
|
||||
2.39.1
|
||||
|
@ -7,6 +7,8 @@ License: ASL 2.0
|
||||
URL: https://github.com/iovisor/bpftrace
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: 0001-Workaround-OpaquePointers-for-LLVM-15.patch
|
||||
# https://github.com/iovisor/bpftrace/pull/2484
|
||||
Patch2: 0001-Fix-compile-with-GCC-13.patch
|
||||
|
||||
# Arches will be included as upstream support is added and dependencies are
|
||||
# satisfied in the respective arches
|
||||
|
Loading…
Reference in New Issue
Block a user