android-file-transfer/0001-Fix-build-with-GCC-13-330.patch
Marek Blaha 2fbcb005ef Backport fix to build with GCC 13
Resolves: rhbz#2171435
2023-05-02 09:12:22 +02:00

30 lines
720 B
Diff

From e8f45ff6f02d2e1e09c12f3aa708e87548d4f2bd Mon Sep 17 00:00:00 2001
From: Sam James <sam@cmpct.info>
Date: Tue, 18 Apr 2023 11:38:22 +0100
Subject: [PATCH] Fix build with GCC 13 (#330)
GCC 13 (as usual for new compiler releases) shuffles around some internal includes so some
are no longer transitively included.
See https://gnu.org/software/gcc/gcc-13/porting_to.html.
Bug: https://bugs.gentoo.org/894788
---
mtp/types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mtp/types.h b/mtp/types.h
index 32024e4..676e180 100644
--- a/mtp/types.h
+++ b/mtp/types.h
@@ -27,6 +27,7 @@
#include <memory>
#include <mutex>
#include <exception>
+#include <stdexcept>
#include <string>
namespace mtp
--
2.40.0