blob: f3197f937bb9a07fb992bc4cf903d5dfad97a6dc [file] [log] [blame]
Andrew Geissler97771a32021-03-05 15:23:11 -06001From 5719ed8ce9ba60beb9c1670b49296b1c66430dc2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 2 Mar 2021 12:57:37 -0800
4Subject: [PATCH] include <optional> header
5
6Fixes build with gcc11
7/src/util/tools.h:165:6: error: 'optional' in na
8mespace 'std' does not name a template type
9| 165 | std::optional<std::vector<std::byte>> readBinaryFile(const fs::path& path);
10| | ^~~~~~~~
11
12Upstream-Status: Submitted [https://github.com/gerbera/gerbera/pull/1273]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/util/tools.h | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/src/util/tools.h b/src/util/tools.h
19index 3a4064e9..e5142966 100644
20--- a/src/util/tools.h
21+++ b/src/util/tools.h
22@@ -37,6 +37,7 @@
23 #include <sstream>
24 #include <string>
25 #include <unordered_set>
26+#include <optional>
27 #include <vector>
28 namespace fs = std::filesystem;
29
30--
312.30.1
32