Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 1 | From 5719ed8ce9ba60beb9c1670b49296b1c66430dc2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 2 Mar 2021 12:57:37 -0800 |
| 4 | Subject: [PATCH] include <optional> header |
| 5 | |
| 6 | Fixes build with gcc11 |
| 7 | /src/util/tools.h:165:6: error: 'optional' in na |
| 8 | mespace 'std' does not name a template type |
| 9 | | 165 | std::optional<std::vector<std::byte>> readBinaryFile(const fs::path& path); |
| 10 | | | ^~~~~~~~ |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/gerbera/gerbera/pull/1273] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | src/util/tools.h | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/src/util/tools.h b/src/util/tools.h |
| 19 | index 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 | -- |
| 31 | 2.30.1 |
| 32 | |