[v4l-utils] treewide: Fix compilation with uClibc++

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

 



Several headers are missing.

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 utils/cec-ctl/cec-ctl.cpp         | 1 +
 utils/cec-follower/cec-follower.h | 1 +
 utils/common/media-info.cpp       | 2 +-
 utils/rds-ctl/rds-ctl.cpp         | 2 ++
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 76ce615e..bca1cc49 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <stdarg.h>
+#include <ctime>
 #include <cerrno>
 #include <string>
 #include <vector>
diff --git a/utils/cec-follower/cec-follower.h b/utils/cec-follower/cec-follower.h
index b39293d1..36496fdc 100644
--- a/utils/cec-follower/cec-follower.h
+++ b/utils/cec-follower/cec-follower.h
@@ -9,6 +9,7 @@
 #define _CEC_FOLLOWER_H_
 
 #include <stdarg.h>
+#include <ctime>
 #include <cerrno>
 #include <string>
 #include <linux/cec-funcs.h>
diff --git a/utils/common/media-info.cpp b/utils/common/media-info.cpp
index 033821ed..3474100e 100644
--- a/utils/common/media-info.cpp
+++ b/utils/common/media-info.cpp
@@ -20,7 +20,7 @@
 
 #include <linux/media.h>
 
-#include <fstream>
+#include <iostream>
 #include <media-info.h>
 
 static std::string num2s(unsigned num, bool is_hex = true)
diff --git a/utils/rds-ctl/rds-ctl.cpp b/utils/rds-ctl/rds-ctl.cpp
index 3e68abeb..06b6344e 100644
--- a/utils/rds-ctl/rds-ctl.cpp
+++ b/utils/rds-ctl/rds-ctl.cpp
@@ -27,6 +27,8 @@
 #include <linux/videodev2.h>
 #include <libv4l2rds.h>
 
+#include <cctype>
+#include <ctime>
 #include <list>
 #include <vector>
 #include <map>
-- 
2.17.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux