lkml.org 
[lkml]   [2003]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectvideo4linux headers
From
Date

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/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.015 / U:1.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site