media-ctl: Use linux-libc-headers instead of linux kernel sources
authorStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Mon, 6 May 2013 12:20:01 +0000 (12:20 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:30:06 +0000 (08:30 -0800)
commit8f5347883db0e89c3c8476da588832cfb2b76bd9
tree30f523a79c73e82d0c916f0016ef46b3e99e38c3
parent980e0321c7fbd7c81aa434e504f4ec601d50215c
media-ctl: Use linux-libc-headers instead of linux kernel sources

Use the headers from the linux-libc-headers instead of the headers
from the linux kernel sources because user space programs should
be built against the header files provided by the distribution.

In file included from .../usr/src/kernel/include/linux/media.h:27:0,
                 from conftest.c:56:
.../usr/src/kernel/include/linux/types.h:13:2: warning: #warning \
"Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]

On some platforms (qemu) intern kernel header (linux/types.h) redefines
some types from the system header (sys/types.h, timer.h, stdint.h)
and thereby breaks the checking of the linux media header.

ERROR: Kernel header file not found or not usable!

In file included from .../usr/include/linux/media.h:27:0,
                 from conftest.c:56:
In file included from .../usr/src/kernel/include/linux/types.h:14:26: error: conflicting types for 'fd_set'
In file included from .../sys/select.h:75:5: note: previous declaration of 'fd_set' was here

Similar errors for dev_t, mode_t, timer_t, uintptr_t and blkcnt_t.

(From meta-openembedded rev: 0c47dcf1dfe9cb5fb2fbe06e06d42920c6f4bcc0)

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb