From 0a1316f12b34c9efa3af9ee4d4c0eb0cb6fc85df Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Tue, 13 Jan 2004 21:56:14 +0000 Subject: sync with vidix cvs CVS patchset: 6043 CVS date: 2004/01/13 21:56:14 --- src/video_out/libdha/kernelhelper/test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/video_out/libdha/kernelhelper/test.c') diff --git a/src/video_out/libdha/kernelhelper/test.c b/src/video_out/libdha/kernelhelper/test.c index 3dfdaa02b..d2d807f3f 100644 --- a/src/video_out/libdha/kernelhelper/test.c +++ b/src/video_out/libdha/kernelhelper/test.c @@ -5,7 +5,8 @@ #include #include #include - +#include + #include "dhahelper.h" int main(int argc, char *argv[]) @@ -14,6 +15,10 @@ int main(int argc, char *argv[]) int ret; fd = open("/dev/dhahelper", O_RDWR); + if(fd < 0){ + perror("dev/dhahelper"); + exit(1); + } ioctl(fd, DHAHELPER_GET_VERSION, &ret); -- cgit v1.2.3