SDL_camera_v4l2.c: fix build against old kernel headers.
This commit is contained in:
@@ -32,6 +32,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <linux/videodev2.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
|
#ifndef V4L2_CAP_DEVICE_CAPS
|
||||||
// device_caps was added to struct v4l2_capability as of kernel 3.4.
|
// device_caps was added to struct v4l2_capability as of kernel 3.4.
|
||||||
#define device_caps reserved[0]
|
#define device_caps reserved[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user