Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Problem in the testing program of the drivers



hi,

I'm runing a debian with a 2.4.26 kernel
i have a 3.3.3 gcc


I tried to compile the file below to test my drivers : 
------------------------------------------------

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/dvb/frontend.h>

int main()
{

	struct dvb_frontend_info info;
	int fd;

	if ((fd = open ("/dev/dvb/adapter0/frontend0", O_RDWR)) < 0) {
		perror ("open failed");
		return -1;
	}

	ioctl (fd, FE_GET_INFO, &info);
        printf("%d",info.type);
}

---------------------------------------------------------

when i compile with  the preprocessor option  it transform "FE_GET_INFO" into
"_IOR('o', 61, struct dvb_frontend_info)" and does no error, but when i do a
complet compilation  i had this error :
 
caravelle:/home/picard/API# gcc t1.c
t1.c: In function `main':
t1.c:22: error: parse error before "struct"

Is anyone have an idea???

thanks









-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index