34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From 36398fb3b293fc889bbc38df29665359f5c2a0ca Mon Sep 17 00:00:00 2001
|
||
|
From: Sergei Trofimovich <slyich@gmail.com>
|
||
|
Date: Sun, 27 Feb 2022 10:59:57 +0000
|
||
|
Subject: [PATCH] BUILD(positional-audio): Fix missing <memory> include
|
||
|
|
||
|
Without the change the build fails on upcoming gcc-12 as:
|
||
|
|
||
|
/build/mumble/plugins/gtav/gtav.cpp:13:13:
|
||
|
error: 'unique_ptr' in namespace 'std' does not name a template type
|
||
|
13 | static std::unique_ptr< Game > game;
|
||
|
| ^~~~~~~~~~
|
||
|
/build/mumble/plugins/gtav/gtav.cpp:12:1:
|
||
|
note: 'std::unique_ptr' is defined in header '<memory>';
|
||
|
did you forget to '#include <memory>'?
|
||
|
11 | #include <cstring>
|
||
|
+++ |+#include <memory>
|
||
|
12 |
|
||
|
---
|
||
|
plugins/gtav/gtav.cpp | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/plugins/gtav/gtav.cpp b/plugins/gtav/gtav.cpp
|
||
|
index ebaf12929f..6c8af41c71 100644
|
||
|
--- a/plugins/gtav/gtav.cpp
|
||
|
+++ b/plugins/gtav/gtav.cpp
|
||
|
@@ -9,6 +9,7 @@
|
||
|
#include "mumble_positional_audio_utils.h"
|
||
|
|
||
|
#include <cstring>
|
||
|
+#include <memory>
|
||
|
|
||
|
static std::unique_ptr< Game > game;
|
||
|
|