Messages in this thread | | | Subject | video4linux headers | From | (Måns Rullgård) | Date | Wed, 17 Dec 2003 19:02:37 +0100 |
| |
When compiling any program that uses video4linux under linux 2.6.0-testANY, I always get these errors:
In file included from /usr/include/linux/videodev2.h:16, /usr/include/linux/time.h:9: redefinition of `struct timespec' /usr/include/linux/time.h:15: redefinition of `struct timeval' /usr/include/time.h:160: redefinition of `struct itimerspec'
Am I doing something terribly wrong? Simply placing an #include <linux/time> in videodev2.h under #ifdef __KERNEL__ seems to get rid of the compiler errors, though I'm sure that's not the proper solution.
-- Måns Rullgård mru@kth.se - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |