public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.27rc1 installs a broken /usr/include/linux/videodev2.h
@ 2008-08-04 18:24 Hans de Goede
  0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2008-08-04 18:24 UTC (permalink / raw)
  To: Linux and Kernel Video, v4l-dvb maintainer list

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:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-04 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 18:24 2.6.27rc1 installs a broken /usr/include/linux/videodev2.h Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox