eudev-project / eudev

Repository for eudev development
GNU General Public License v2.0
521 stars 145 forks source link

Fix compile-time issue on very old kernels #247

Closed cockroach closed 1 year ago

cockroach commented 1 year ago

Kernel versions prior to 3.4 did not have V4L2_CAP_DEVICE_CAPS and compiling against such a kernel will fail.

This patch introduces a version check and makes eudev fall back to v2cap.capabilities on these kernels.

bbonev commented 1 year ago

LGTM