From b0d1e2632dbd3e350f9837b8e1d6cab8f073d1ea Mon Sep 17 00:00:00 2001 From: Daniel Bermond Date: Sun, 5 Jun 2022 13:21:48 -0300 Subject: [PATCH] Fix build with gcc 12 gcc 12 changed header dependencies. It now requires to explicitly include the '' C++ header for using 'std::unique_ptr'. Otherwise, a build error will occur. See documentation[1] about porting to gcc 12. Fixes #2940 [1] https://gcc.gnu.org/gcc-12/porting_to.html --- tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h | 1 + tests/unit/suites/tracer/linux/mfx_tracer_test_main.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h b/tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h index afe41f68f1..c195528753 100644 --- a/tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h +++ b/tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h @@ -26,6 +26,7 @@ #include #include +#include #include #include diff --git a/tests/unit/suites/tracer/linux/mfx_tracer_test_main.h b/tests/unit/suites/tracer/linux/mfx_tracer_test_main.h index 993fad3ae4..f491bb00d7 100644 --- a/tests/unit/suites/tracer/linux/mfx_tracer_test_main.h +++ b/tests/unit/suites/tracer/linux/mfx_tracer_test_main.h @@ -26,6 +26,7 @@ #include #include +#include #include #include