summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin-Éric Racine <martin-eric.racine@iki.fi>2012-01-02 17:49:10 +0200
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2012-01-02 17:49:10 +0200
commit048c67d6f351083741ef68e94a278a445c16436d (patch)
tree3731b5a15795922e87e9c271c92e031ec99f2cc7
parente420d7956afceeb41f20179cedc28d46aebdb29f (diff)
z4l.c: drop unnecessary #include linux/types.h
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 <martin-eric.racine@iki.fi>
-rw-r--r--src/z4l.c2
1 files changed, 0 insertions, 2 deletions
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 <linux/types.h>
-
#define __s64 __s_64
typedef long long __s64;