SDL_camera_v4l2.c: fix build against old kernel headers.

This commit is contained in:
Ozkan Sezer
2025-11-06 18:28:50 +03:00
parent 80af7d3ccd
commit 616c21d730

View File

@@ -32,6 +32,9 @@
#include <unistd.h>
#include <linux/videodev2.h>
#ifndef V4L2_PIX_FMT_RGBX32
#define V4L2_PIX_FMT_RGBX32 v4l2_fourcc('X','B','2','4')
#endif
#ifndef V4L2_CAP_DEVICE_CAPS
// device_caps was added to struct v4l2_capability as of kernel 3.4.
#define device_caps reserved[0]