summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-05 11:46:46 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-05 11:46:46 -0300
commit70924af414b258c769a2ece2c64b7c9b14c18fc8 (patch)
tree606547957d92ce873c3394ffbf8de93abb8ae387 /test
parent846c556b88da6cefc77bcd828f0266c7b6f1da29 (diff)
downloadmediapointer-dvb-s2-70924af414b258c769a2ece2c64b7c9b14c18fc8.tar.gz
mediapointer-dvb-s2-70924af414b258c769a2ece2c64b7c9b14c18fc8.tar.bz2
Userspace compilation were broken by the changes at videodev.
From: Mauro Carvalho Chehab <mchehab@infradead.org> Userspace have its own headers for timeval, so, include linux/time.h shouldn't be done at userspace. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'test')
-rw-r--r--test/ioctl-test.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/ioctl-test.c b/test/ioctl-test.c
index b7dd87e94..5050e2f52 100644
--- a/test/ioctl-test.c
+++ b/test/ioctl-test.c
@@ -23,7 +23,11 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#define INTERNAL 1 /* meant for testing ioctl debug msgs */
+/*
+ * Internal ioctl doesn't work anymore, due to the changes at
+ * v4l2-dev.h.
+ */
+//#define INTERNAL 1 /* meant for testing ioctl debug msgs */
#include <stdio.h>
#include <unistd.h>
@@ -32,8 +36,8 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
-#define __user
-#include <linux/videodev.h>
+//#define __user
+#include "../linux/include/linux/videodev.h"
#ifdef INTERNAL
typedef __u8 u8;
@@ -41,6 +45,8 @@ typedef __u32 u32;
#include <linux/version.h>
#include "../linux/include/media/v4l2-common.h"
#include <linux/video_decoder.h>
+#else
+typedef u_int32_t u32;
#endif
/* All possible parameters used on v4l ioctls */
@@ -143,8 +149,8 @@ int ioctls[] = {
VIDIOC_ENUMINPUT,/* struct v4l2_input */
VIDIOC_ENUMOUTPUT,/* struct v4l2_output */
VIDIOC_ENUMSTD,/* struct v4l2_standard */
- VIDIOC_G_AUDIO_OLD,/* struct v4l2_audio */
- VIDIOC_G_AUDOUT_OLD,/* struct v4l2_audioout */
+// VIDIOC_G_AUDIO_OLD,/* struct v4l2_audio */
+// VIDIOC_G_AUDOUT_OLD,/* struct v4l2_audioout */
VIDIOC_G_CROP,/* struct v4l2_crop */
VIDIOC_G_CTRL,/* struct v4l2_control */
VIDIOC_G_FMT,/* struct v4l2_format */
@@ -152,7 +158,7 @@ int ioctls[] = {
VIDIOC_G_MODULATOR,/* struct v4l2_modulator */
VIDIOC_G_PARM,/* struct v4l2_streamparm */
VIDIOC_G_TUNER,/* struct v4l2_tuner */
- VIDIOC_OVERLAY_OLD,/* int */
+// VIDIOC_OVERLAY_OLD,/* int */
VIDIOC_QBUF,/* struct v4l2_buffer */
VIDIOC_QUERYBUF,/* struct v4l2_buffer */
VIDIOC_QUERYCTRL,/* struct v4l2_queryctrl */