public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-gfx/sane-backends/files: sane-backends-1.0.22-libv4l-0.8.3.patch
@ 2011-08-05  9:31 Bernard Cafarelli (voyageur)
  0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli (voyageur) @ 2011-08-05  9:31 UTC (permalink / raw
  To: gentoo-commits

voyageur    11/08/05 09:31:25

  Added:                sane-backends-1.0.22-libv4l-0.8.3.patch
  Log:
  Non-maintainer commit: backport upstream fix for >=media-libs/libv4l-0.8.3 support, bug #356919. Also remove leftover app-text/tetex dependencies
  
  (Portage version: 2.2.0_alpha50/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-gfx/sane-backends/files/sane-backends-1.0.22-libv4l-0.8.3.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.22-libv4l-0.8.3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.22-libv4l-0.8.3.patch?rev=1.1&content-type=text/plain

Index: sane-backends-1.0.22-libv4l-0.8.3.patch
===================================================================
From c5ca46c2d1be78c651afb843cc834cf2b5b24953 Mon Sep 17 00:00:00 2001
From: Julien BLACHE <jb@jblache.org>
Date: Wed, 16 Feb 2011 19:37:43 +0100
Subject: [PATCH] Fix v4l build with libv4l 0.8.3+

---
diff --git a/backend/v4l.c b/backend/v4l.c
index 6510ef0..38595ed 100644
--- a/backend/v4l.c
+++ b/backend/v4l.c
@@ -84,9 +84,8 @@
 #include "../include/sane/sanei_config.h"
 #define V4L_CONFIG_FILE "v4l.conf"
 
-#include "v4l.h"
-
 #include <libv4l1.h>
+#include "v4l.h"
 
 static const SANE_Device **devlist = NULL;
 static int num_devices;
diff --git a/backend/v4l.h b/backend/v4l.h
index 588b96e..6aee586 100644
--- a/backend/v4l.h
+++ b/backend/v4l.h
@@ -29,6 +29,7 @@
 #ifndef v4l_h
 #define v4l_h
 
+#ifndef __LINUX_VIDEODEV_H
 /* Kernel interface */
 /* Only the stuff we need. For more features, more defines are needed */
 
@@ -165,7 +166,7 @@ struct video_channel
 
 
 /* end of kernel interface */
-
+#endif /* !__LINUX_VIDEODEV_H */
 
 #include <../include/sane/sane.h>
 
-- 
1.7.2.5







^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-05  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05  9:31 [gentoo-commits] gentoo-x86 commit in media-gfx/sane-backends/files: sane-backends-1.0.22-libv4l-0.8.3.patch Bernard Cafarelli (voyageur)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox