bpftrace/0001-Fix-compile-with-GCC-1...

60 lines
1.3 KiB
Diff

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