v4l2codecs: Fix compilation error on FreeBSD
requested to merge lantw/gst-plugins-bad:wip/lantw/v4l2codecs-Fix-compilation-error-on-FreeBSD into master
This commit does the following things to fix compilation on FreeBSD:
- Add required typedefs to linux/types-compat.h.
- Remove unnecessary include linux/ioctl.h and replace linux/types.h with linux/types-compat.h. Both files do not exist on FreeBSD.
- Check the header including makedev macro. FreeBSD does not have sys/sysmacros.h, and including it unconditionally causes error.