From 2d2196ca0d06f25ea0a392b863310feb22a7549c Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Thu, 28 Jul 2022 13:01:30 +0100 Subject: ipa: raspberrypi: Add functional include to pwl.h The Pwl class uses std::function, defined in , without including the header directly. This results in a compilation error with the Fedora 36 compiler toolchain (gcc 12.1.1): In file included from ../src/ipa/raspberrypi/controller/rpi/awb.h:14, from ../src/ipa/raspberrypi/controller/rpi/awb.cpp:14: ../src/ipa/raspberrypi/controller/rpi/../pwl.h:97:18: error: 'std::function' has not been declared 97 | void map(std::function f) const; | ^~~ Fix it by including . Fixes: c1597f989654 ("ipa: raspberrypi: Use YamlParser to replace dependency on boost") Signed-off-by: Eric Curtin Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/ipa/raspberrypi/controller/pwl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipa') diff --git a/src/ipa/raspberrypi/controller/pwl.h b/src/ipa/raspberrypi/controller/pwl.h index 546482cd..aacf6039 100644 --- a/src/ipa/raspberrypi/controller/pwl.h +++ b/src/ipa/raspberrypi/controller/pwl.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include #include -- cgit v1.2.1