diff options
author | Koop Mast <kwm@FreeBSD.org> | 2011-06-27 21:03:06 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2011-06-27 21:03:06 +0000 |
commit | 89161554ac50bd57be24273c5ee8c7a0336463f2 (patch) | |
tree | c099132f82c86358125110aef0c5d7890b5970a6 /multimedia/libv4l/files | |
parent | 3d5626cd591a8cda560a7420342dfed311bc3060 (diff) | |
download | ports-89161554ac50bd57be24273c5ee8c7a0336463f2.tar.gz ports-89161554ac50bd57be24273c5ee8c7a0336463f2.zip |
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@)
Notes
Notes:
svn path=/head/; revision=276525
Diffstat (limited to 'multimedia/libv4l/files')
-rw-r--r-- | multimedia/libv4l/files/patch-include_libv4l1-videodev.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/libv4l/files/patch-include_libv4l1-videodev.h b/multimedia/libv4l/files/patch-include_libv4l1-videodev.h new file mode 100644 index 000000000000..c63ef5c1e4ce --- /dev/null +++ b/multimedia/libv4l/files/patch-include_libv4l1-videodev.h @@ -0,0 +1,18 @@ +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 */ |