Skip to content

Commit 53054fe

Browse files
henryptungrobimarko
authored andcommitted
tools/llvm-bpf: fix compilation with GCC15
Add cstdint include to SmallVector.h. Backported from llvm/llvm-project@7e44305. Signed-off-by: Henry Tung <[email protected]> Link: openwrt/openwrt#18767 Signed-off-by: Robert Marko <[email protected]>
1 parent 8fb4672 commit 53054fe

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From 7e44305041d96b064c197216b931ae3917a34ac1 Mon Sep 17 00:00:00 2001
2+
From: Sam James <[email protected]>
3+
Date: Fri, 2 Aug 2024 23:07:21 +0100
4+
Subject: [PATCH] [ADT] Add `<cstdint>` to SmallVector (#101761)
5+
6+
SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>`
7+
which fails to build w/ GCC 15 after a change in libstdc++ [0]
8+
9+
[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2
10+
---
11+
llvm/include/llvm/ADT/SmallVector.h | 1 +
12+
1 file changed, 1 insertion(+)
13+
14+
--- a/llvm/include/llvm/ADT/SmallVector.h
15+
+++ b/llvm/include/llvm/ADT/SmallVector.h
16+
@@ -19,6 +19,7 @@
17+
#include <algorithm>
18+
#include <cassert>
19+
#include <cstddef>
20+
+#include <cstdint>
21+
#include <cstdlib>
22+
#include <cstring>
23+
#include <functional>

0 commit comments

Comments
 (0)