public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* trivial videodev2.h patch
@ 2006-05-25  4:14 David Mosberger-Tang
  2006-05-25 10:03 ` Christian Kujau
  0 siblings, 1 reply; 3+ messages in thread
From: David Mosberger-Tang @ 2006-05-25  4:14 UTC (permalink / raw)
  To: Andrew Morton, linux kernel

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

Hi Andrew,

linux/videodev2.h uses types such as __u8 but it fails to include
<linux/types.h>.  Within the kernel, that's not a problem because
<linux/time.h> already includes <linux/types.h>.  However, there are
user apps that try to include videodev2.h (e.g., ekiga) and at least
on ia64, it causes compilation failures since <linux/types.h> doesn't
get included for any other reason, leaving __u8 etc. undefined.  The
attached patch fixes the problem for me.

Thanks,

  --david
-- 
Mosberger Consulting LLC, http://www.mosberger-consulting.com/

[-- Attachment #2: videodev2.diff --]
[-- Type: text/x-patch, Size: 287 bytes --]

diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -19,6 +19,7 @@
 #include <linux/device.h>
 #include <linux/mutex.h>
 #endif
+#include <linux/types.h>
 #include <linux/compiler.h> /* need __user */
 
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-26 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-25  4:14 trivial videodev2.h patch David Mosberger-Tang
2006-05-25 10:03 ` Christian Kujau
2006-05-26 13:31   ` Mauro Carvalho Chehab

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