From 94635ae720a892df2d39d1d3f2e80136b4f7bd49 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 30 Mar 2003 13:58:01 +0000 Subject: 0.6.1 accepted release patch fixes v4l/v4l2 plugin compilation problems Original commit message from CVS: 0.6.1 accepted release patch fixes v4l/v4l2 plugin compilation problems --- sys/v4l2/gstv4l2element.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys') diff --git a/sys/v4l2/gstv4l2element.h b/sys/v4l2/gstv4l2element.h index 87ebaad9..ac0e65fb 100644 --- a/sys/v4l2/gstv4l2element.h +++ b/sys/v4l2/gstv4l2element.h @@ -21,8 +21,22 @@ #define __GST_V4L2ELEMENT_H__ #include + +/* Because of some really cool feature in video4linux1, also known as + * 'not including sys/types.h and sys/time.h', we had to include it + * ourselves. In all their intelligence, these people decided to fix + * this in the next version (video4linux2) in such a cool way that it + * breaks all compilations of old stuff... + * The real problem is actually that linux/time.h doesn't use proper + * macro checks before defining types like struct timeval. The proper + * fix here is to either fuck the kernel header (which is what we do + * by defining _LINUX_TIME_H, an innocent little hack) or by fixing it + * upstream, which I'll consider doing later on. If you get compiler + * errors here, check your linux/time.h && sys/time.h header setup. + */ #include #include +#define _LINUX_TIME_H #include -- cgit v1.2.1