freebsd-ports/multimedia/libv4l/files/patch-include_libv4l1-videodev.h
Koop Mast 89161554ac Add a patch to unbreak compile of libv4l gcc 4.5 [1] and clang.
This should unbreak some libv4l users like pwcview [2]
Bump portrevision since this affects a installed header.

Reported by:	avg@ [1], pointyhat via pav [2]
Submitted by:	Jan Henrik Sylvester <me@janh.de>
Approved by:	maintainer (hselasky@)
2011-06-27 21:03:06 +00:00

18 lines
490 B
C

diff -ru v4l-utils-0.8.4.orig/lib/include/libv4l1-videodev.h v4l-utils-0.8.4/lib/include/libv4l1-videodev.h
--- include/libv4l1-videodev.h 2011-06-27 09:52:38.000000000 +0200
+++ include/libv4l1-videodev.h 2011-06-27 09:55:51.000000000 +0200
@@ -2,7 +2,14 @@
#ifndef __LINUX_VIDEODEV_H
#define __LINUX_VIDEODEV_H
+#ifdef linux
#include <linux/ioctl.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <sys/ioctl.h>
+#endif
+
#include <stdint.h>
#define VID_TYPE_CAPTURE 1 /* Can capture */