Skip to contentSkip to conversation

2.6.27rc1 installs a broken /usr/include/linux/videodev2.h

DISCUSSION Hans de Goede 1 participant 1 message Aug 4, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi All,

When doing "make headers_install" 2.6.27rc1 install a broken /usr/include/linux/videodev2.h

The problem are the 2 userspace lines of the following part of videodev2.h:

#ifdef __KERNEL__
#include <linux/time.h> /* need struct timeval */
#include <linux/compiler.h> /* need __user */
#else
#define __user
#include <sys/time.h>
#endif

2.6.27rc1 seems to handle __user usage in userspace itself now, simply by removing __user + whitespace after it resulting in the following in userspace for the 2 lines in the userspace of the if else above:

#define #include <sys/time.h>

The fix for 2/6/27rc1 is to simply remove the "#define __user" line, but I wonder how that will effect our usage with older kernels?

Regards,

Hans

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list