opnsense-ports/graphics/opencv/files/patch-modules__highgui__src__cap_libv4l.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

19 lines
593 B
C++

--- ./modules/highgui/src/cap_libv4l.cpp.orig 2013-07-10 07:49:00.000000000 -0400
+++ ./modules/highgui/src/cap_libv4l.cpp 2013-10-23 23:52:32.000000000 -0400
@@ -237,7 +237,6 @@
#include <sys/mman.h>
#include <string.h>
#include <stdlib.h>
-#include <asm/types.h> /* for videodev2.h */
#include <assert.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
@@ -574,7 +573,7 @@
static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
- __u32 ctrl_id;
+ uint32_t ctrl_id;
struct v4l2_control c;
if (capture->v4l2_ctrl_ranges != NULL) {
v4l2_free_ranges(capture);