Skip to content

v4l2codecs: Fix compilation error on FreeBSD

This commit does the following things to fix compilation on FreeBSD:

  1. Add required typedefs to linux/types-compat.h.
  2. Remove unnecessary include linux/ioctl.h and replace linux/types.h with linux/types-compat.h. Both files do not exist on FreeBSD.
  3. Check the header including makedev macro. FreeBSD does not have sys/sysmacros.h, and including it unconditionally causes error.

Merge request reports