From 048c67d6f351083741ef68e94a278a445c16436d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin-=C3=89ric=20Racine?= Date: Mon, 2 Jan 2012 17:49:10 +0200 Subject: z4l.c: drop unnecessary #include linux/types.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On hybrid platforms, such as Debian GNU/KFreeBSD, that support V4L2 and yet without providing the full complement of Linux headers, ZTV fails to compile because of this missing header. Given how removing this header does not adversely affect compiling, plus it might improve portability, we went ahead and removed it. Nonetheless, as observed by Gaetan Nadon, z4l.c includes code that explicitly disables the module on any OS other than Linux: LoaderGetOS(&osname, NULL, NULL, NULL); if (osname == NULL || strcmp(osname, "linux") != 0) { if (errmaj) *errmaj = LDR_BADOS; if (errmin) *errmin = 0; return NULL; } Still, in the interest of OS neutrality, we decided to leave recent autoconf magic in place and to let OS vendors figure out how to get the module loaded on non-Linux OS themselves. Patches are welcome. Signed-off-by: Martin-Éric Racine --- src/z4l.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/z4l.c b/src/z4l.c index c6a7c58..a21e492 100644 --- a/src/z4l.c +++ b/src/z4l.c @@ -47,8 +47,6 @@ #include "xf86xv.h" #include "fourcc.h" -#include - #define __s64 __s_64 typedef long long __s64; -- cgit v1.2.3