1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

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@)
This commit is contained in:
Koop Mast 2011-06-27 21:03:06 +00:00
parent 3d5626cd59
commit 89161554ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276525
2 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libv4l
PORTVERSION= 0.8.4
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://linuxtv.org/downloads/v4l-utils/
DISTNAME= v4l-utils-${PORTVERSION}

View File

@ -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 */