aboutsummaryrefslogtreecommitdiff
path: root/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/qTox/files/patch-src_platform_camera_v4l2.cpp')
-rw-r--r--net-im/qTox/files/patch-src_platform_camera_v4l2.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp b/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp
new file mode 100644
index 000000000000..14811e362db2
--- /dev/null
+++ b/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp
@@ -0,0 +1,14 @@
+Fix build with GCC 4.9
+src/platform/camera/v4l2.cpp:204:24: error: 'printf' was not declared in this scope
+ printf("BAD!\n");
+
+--- src/platform/camera/v4l2.cpp.orig 2016-12-02 20:44:09 UTC
++++ src/platform/camera/v4l2.cpp
+@@ -29,6 +29,7 @@
+ #include <linux/videodev2.h>
+ #include <dirent.h>
+ #include <map>
++#include <cstdio>
+
+ /**
+ * Most of this file is adapted from libavdevice's v4l2.c,