Cherry-pick upstream fix for GCC 13 (Closes: 1037572)
Dylan Aïssi
9 months ago
|
0 |
From e8f45ff6f02d2e1e09c12f3aa708e87548d4f2bd Mon Sep 17 00:00:00 2001
|
|
1 |
From: Sam James <sam@cmpct.info>
|
|
2 |
Date: Tue, 18 Apr 2023 11:38:22 +0100
|
|
3 |
Subject: [PATCH] Fix build with GCC 13 (#330)
|
|
4 |
|
|
5 |
GCC 13 (as usual for new compiler releases) shuffles around some internal includes so some
|
|
6 |
are no longer transitively included.
|
|
7 |
|
|
8 |
See https://gnu.org/software/gcc/gcc-13/porting_to.html.
|
|
9 |
|
|
10 |
Origin: https://github.com/whoozle/android-file-transfer-linux/commit/e8f45ff6f02d2e1e09c12f3aa708e87548d4f2bd
|
|
11 |
Bug-Gentoo: https://bugs.gentoo.org/894788
|
|
12 |
Bug-Debian: https://bugs.debian.org/1037572
|
|
13 |
---
|
|
14 |
mtp/types.h | 1 +
|
|
15 |
1 file changed, 1 insertion(+)
|
|
16 |
|
|
17 |
diff --git a/mtp/types.h b/mtp/types.h
|
|
18 |
index 32024e4e..676e180e 100644
|
|
19 |
--- a/mtp/types.h
|
|
20 |
+++ b/mtp/types.h
|
|
21 |
@@ -27,6 +27,7 @@
|
|
22 |
#include <memory>
|
|
23 |
#include <mutex>
|
|
24 |
#include <exception>
|
|
25 |
+#include <stdexcept>
|
|
26 |
#include <string>
|
|
27 |
|
|
28 |
namespace mtp
|