summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-08 01:26:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-08 01:26:02 -0500
commitd573a253c1ba45b5e56f7bc25c8242f797a204e4 (patch)
tree660398c7833d3adff1f2e405081ec3d62728747a /kopete/libkopete
parentfed3c63c9fbcc73c43b65082deed9279c729dc9c (diff)
downloadtdenetwork-d573a253c1ba45b5e56f7bc25c8242f797a204e4.tar.gz
tdenetwork-d573a253c1ba45b5e56f7bc25c8242f797a204e4.zip
Fix FTBFS
Diffstat (limited to 'kopete/libkopete')
-rw-r--r--kopete/libkopete/avdevice/configure.in.in22
-rw-r--r--kopete/libkopete/avdevice/videodevice.cpp4
-rw-r--r--kopete/libkopete/avdevice/videodevice.h4
3 files changed, 28 insertions, 2 deletions
diff --git a/kopete/libkopete/avdevice/configure.in.in b/kopete/libkopete/avdevice/configure.in.in
index 34dd7523..4a446c03 100644
--- a/kopete/libkopete/avdevice/configure.in.in
+++ b/kopete/libkopete/avdevice/configure.in.in
@@ -19,3 +19,25 @@ fi
AC_MSG_RESULT($ac_have_libv4l1_videodev_h)
# -- End libv4l1-videodev.h ----------------------------------------------
+
+# -- Check for installed videodev headers --------------------
+
+AC_MSG_CHECKING([for videodev.h])
+
+AC_TRY_COMPILE([
+#include <linux/videodev.h>
+],
+[
+],
+ ac_have_videodev_h=yes
+,
+ ac_have_videodev_h=no
+)
+
+if test $ac_have_videodev_h = yes; then
+ AC_DEFINE(HAVE_LINUX_VIDEODEV_H, 1, [Define if you have videodev.h installed])
+fi
+
+AC_MSG_RESULT($ac_have_videodev_h)
+
+# -- End videodev ----------------------------------------------
diff --git a/kopete/libkopete/avdevice/videodevice.cpp b/kopete/libkopete/avdevice/videodevice.cpp
index e12fb02f..1df1220f 100644
--- a/kopete/libkopete/avdevice/videodevice.cpp
+++ b/kopete/libkopete/avdevice/videodevice.cpp
@@ -2237,7 +2237,11 @@ TQString VideoDevice::pixelFormatName(int pixelformat)
int VideoDevice::detectPixelFormats()
{
+#if defined(__linux__) && defined(ENABLE_AV)
+#ifdef V4L2_CAP_VIDEO_CAPTURE
int err = 0;
+#endif
+#endif
switch(m_driver)
{
#if defined(__linux__) && defined(ENABLE_AV)
diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h
index 7e575138..61bd8844 100644
--- a/kopete/libkopete/avdevice/videodevice.h
+++ b/kopete/libkopete/avdevice/videodevice.h
@@ -295,11 +295,11 @@ public:
void enumerateMenu (void);
#endif
-#ifndef ENABLE_AV
+#ifdef ENABLE_AV
struct video_capability V4L_capabilities;
struct video_buffer V4L_videobuffer;
#endif
-#endif
+#endif
TQValueVector<Kopete::AV::VideoInput> m_input;
TQValueVector<Kopete::AV::VideoControl> m_control;
// TQFile file;