summaryrefslogtreecommitdiffstats
path: root/x11vnc/v4l.c
diff options
context:
space:
mode:
authorrunge <[email protected]>2010-04-18 19:37:37 -0400
committerrunge <[email protected]>2010-04-18 19:37:37 -0400
commitb74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (patch)
treec8c8aaec90fd51a10790795030777b2dda548fe7 /x11vnc/v4l.c
parent2a8ba97ec5b0f7fbfcfc8adab6732a95e95c7204 (diff)
downloadlibtdevnc-b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1.tar.gz
libtdevnc-b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1.zip
Improvements to demo scripts. Alias -coe for -connect_or_exit. Fix HAVE_V4L2. Warn no Xvfb, Xdummy, or Xvnc. Xinerama screens.
Diffstat (limited to 'x11vnc/v4l.c')
-rw-r--r--x11vnc/v4l.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/v4l.c b/x11vnc/v4l.c
index 2180794..84bfd08 100644
--- a/x11vnc/v4l.c
+++ b/x11vnc/v4l.c
@@ -46,6 +46,11 @@ so, delete this exception statement from your version.
#include <sys/ioctl.h>
#define CONFIG_VIDEO_V4L1_COMPAT
#include <linux/videodev.h>
+#ifdef __LINUX_VIDEODEV2_H
+# ifndef HAVE_V4L2
+# define HAVE_V4L2 1
+# endif
+#endif
#define V4L_OK
#endif
#endif