diff options
author | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2012-01-02 17:49:10 +0200 |
---|---|---|
committer | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2012-01-02 17:49:10 +0200 |
commit | 048c67d6f351083741ef68e94a278a445c16436d (patch) | |
tree | 3731b5a15795922e87e9c271c92e031ec99f2cc7 /src/geode_pcirename.h | |
parent | e420d7956afceeb41f20179cedc28d46aebdb29f (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>
Diffstat (limited to 'src/geode_pcirename.h')
0 files changed, 0 insertions, 0 deletions