summaryrefslogtreecommitdiff
path: root/multimedia/pwcbsd/files/patch-pwc-v4l.c
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2009-05-27 18:31:56 +0000
committerLars Engels <lme@FreeBSD.org>2009-05-27 18:31:56 +0000
commit7349eb0b67f03ff7feb06786ff95e25efaf578e8 (patch)
tree1ce0a7e6e1656a5ccea62e49deb9c96092008690 /multimedia/pwcbsd/files/patch-pwc-v4l.c
parentfix compilation if the old sane version is still installed (diff)
- Add patches to fix build with USB2
- Bump PORTREVISION Patches Submitted by: hps
Diffstat (limited to 'multimedia/pwcbsd/files/patch-pwc-v4l.c')
-rw-r--r--multimedia/pwcbsd/files/patch-pwc-v4l.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/pwcbsd/files/patch-pwc-v4l.c b/multimedia/pwcbsd/files/patch-pwc-v4l.c
new file mode 100644
index 000000000000..35ae7c2dfa31
--- /dev/null
+++ b/multimedia/pwcbsd/files/patch-pwc-v4l.c
@@ -0,0 +1,11 @@
+--- pwc-v4l.c.orig 2006-06-07 22:15:52.000000000 +0200
++++ pwc-v4l.c 2009-05-27 20:22:49.137318240 +0200
+@@ -67,7 +67,7 @@
+ {
+ struct video_capability *caps = arg;
+
+- strncpy(caps->name, pdev->name, sizeof(caps->name) - 1);
++ strncpy(caps->name, device_get_desc(pdev->sc_dev), sizeof(caps->name) - 1);
+ caps->name[sizeof(caps->name) - 1] = '\0';
+ caps->type = VID_TYPE_CAPTURE;
+ caps->channels = 1;