On Tuesday 03 June 2008 12:47, KH KH wrote:
> 2008/5/31 Johannes Sixt <[EMAIL PROTECTED]>:
> > On Friday 30 May 2008 03:32, KH KH wrote:
> >> 2008/5/19 Johannes Sixt <[EMAIL PROTECTED]>:
> >> > On Monday 19 May 2008 13:53, Nicolas Chauvet wrote:
> >> >> - sed -i -e 's|linux/time.h|time.h|' configure.in configure
> >> >> The configure script test if v4l2 can be built with linux/time.h (and
> >> >> fails) but this header isn't specified in the source codec elsewhere.
> >> >> Instead time.h is found and the test will succeed if this file is
> >> >> used.
> >> >
> >> > It does not work here with #include <time.h> (Suse 10.1). I need
> >> > <linux/time.h>. It's the types __u32 etc. that are needed. :( What to
> >> > do?
> >>
> >> on Fedora 8 with glibc 2.7 and kernel 2.6.24
> >> asm/types.h:typedef unsigned int __u32;
> >> linux/types.h:#include <asm/types.h>
> >> linux/videodev2.h:#include <linux/types.h>
> >>
> >> So I think <linux/videodev2.h> would be enought, but i'm not really
> >> confident on this point.
>
> #ifndef __LINUX_VIDEODEV2_H
> #define __LINUX_VIDEODEV2_H
> #define __user
> #include <sys/time.h>
> #include <linux/types.h>
> That's on the top of the videodev2.h
Thanks for the pointer. I investigated a bit, and found that in
cinelerra/vdevicev4l2.h we include <linux/types.h>, so we should do it in
configure, too. But since that's not enough (struct timeval is needed), we
include <sys/time.h>, too. How about the patch below?
-- Hannes
diff --git a/configure.in b/configure.in
index 7331a03..4ab91ba 100644
--- a/configure.in
+++ b/configure.in
@@ -37,9 +37,11 @@ dnl Check for Video4Linux2
AH_TEMPLATE(HAVE_VIDEO4LINUX2, [Define to 1 if Video4Linux2 is available.])
AC_CHECK_HEADER([linux/videodev2.h],
[AC_CHECK_MEMBER(struct v4l2_buffer.index,
[AC_DEFINE(HAVE_VIDEO4LINUX2)],
[],
- [#include <linux/time.h>
+ [#include <sys/time.h>
+#include <linux/types.h>
#include <linux/videodev2.h>])],
- [],[#include <linux/time.h>] )
+ [],[#include <sys/time.h>
+#include <linux/types.h>] )
############## SPECIAL DIRECTORIES
AC_ARG_WITH(plugindir,
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra