Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame^] | 1 | From 45cb02332b38b2059e7e44369c3d8684492a7def Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 12 Apr 2022 11:41:41 -0700 |
| 4 | Subject: [PATCH] libmatrix: Include missing <utility> header |
| 5 | |
| 6 | Fixes build with gcc12 |
| 7 | | ../git/src/libmatrix/program.h:43:21: error: 'exchange' is not a member of 'std' | 43 | ready_(std::exchange(shader.ready_, false)), | | ^~~~~~~~ |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/glmark2/glmark2/pull/174] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | src/libmatrix/program.h | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | --- a/src/libmatrix/program.h |
| 16 | +++ b/src/libmatrix/program.h |
| 17 | @@ -13,6 +13,7 @@ |
| 18 | #define PROGRAM_H_ |
| 19 | |
| 20 | #include <string> |
| 21 | +#include <utility> |
| 22 | #include <vector> |
| 23 | #include <map> |
| 24 | #include "mat.h" |