[libgpiod] Fix FTBFS with bindings/cxx/examples/gpiod_cxx_tests.cpp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: SZ Lin (林上智) <sz.lin@xxxxxxxx>

This patch adds proper include file to fix FTBFS issue in gpiod_cxx_tests.cpp,
please see below error.

gpiod_cxx_tests.cpp:29:19: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
gpiod_cxx_tests.cpp:26:1:
+#include <functional>

Signed-off-by: SZ Lin (林上智) <sz.lin@xxxxxxxx>
---
 bindings/cxx/examples/gpiod_cxx_tests.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bindings/cxx/examples/gpiod_cxx_tests.cpp b/bindings/cxx/examples/gpiod_cxx_tests.cpp
index df4820b..767fe98 100644
--- a/bindings/cxx/examples/gpiod_cxx_tests.cpp
+++ b/bindings/cxx/examples/gpiod_cxx_tests.cpp
@@ -21,6 +21,7 @@
 #include <map>
 #include <cstring>
 #include <cerrno>
+#include <functional>
 
 #include <poll.h>
 
-- 
2.19.0




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux