summaryrefslogtreecommitdiff
path: root/v4l2-apps/test/v4lgrab.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/test/v4lgrab.c')
-rw-r--r--v4l2-apps/test/v4lgrab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l2-apps/test/v4lgrab.c b/v4l2-apps/test/v4lgrab.c
index c8d433c1d..07c50ef89 100644
--- a/v4l2-apps/test/v4lgrab.c
+++ b/v4l2-apps/test/v4lgrab.c
@@ -91,6 +91,7 @@ int get_brightness_adj(unsigned char *image, long size, int *brightness)
int main(int argc, char **argv)
{
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
int fd = open(FILE, O_RDONLY), f;
struct video_capability cap;
struct video_window win;
@@ -190,5 +191,8 @@ int main(int argc, char **argv)
}
close(fd);
+#else
+ fprintf(stderr, "V4L1 API is not configured!\n");
+#endif
return 0;
}