pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/libv4l Fix build on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9802456c0ffb
branches:  trunk
changeset: 602726:9802456c0ffb
user:      hans <hans%pkgsrc.org@localhost>
date:      Wed Apr 18 21:16:43 2012 +0000

description:
Fix build on NetBSD.

diffstat:

 graphics/libv4l/distinfo         |   4 ++--
 graphics/libv4l/patches/patch-aj |  11 +++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 98df096f2a4a -r 9802456c0ffb graphics/libv4l/distinfo
--- a/graphics/libv4l/distinfo  Wed Apr 18 21:05:30 2012 +0000
+++ b/graphics/libv4l/distinfo  Wed Apr 18 21:16:43 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2012/04/18 18:25:22 hans Exp $
+$NetBSD: distinfo,v 1.10 2012/04/18 21:16:43 hans Exp $
 
 SHA1 (libv4l-0.4.3.tar.gz) = 2539aa6b04650b97c9fc7ba95721f1e362a73031
 RMD160 (libv4l-0.4.3.tar.gz) = 4f0435d955f15602ac093385607417fab71deb17
@@ -11,7 +11,7 @@
 SHA1 (patch-af) = 5eba7f447789b2cfd42b1f73bde4dd3c1985a6b2
 SHA1 (patch-ah) = d32f2e6aa694d4f0d04e8afbf462b3e61a31bbcc
 SHA1 (patch-ai) = 8f22e4050d5e20981bfdd1fc51e572e42347c2b5
-SHA1 (patch-aj) = 6ae0ff937cc974a737f19373dff259959ffe89e3
+SHA1 (patch-aj) = 521abdfba83a34716ce0909f75d784fe0b6ecc8a
 SHA1 (patch-ak) = 0465c3cc368609a3108f8d1aafcacf0ab3c61858
 SHA1 (patch-al) = 8d020ef01f9956b37f718a529306e5f13aaa03a3
 SHA1 (patch-am) = 0baf169cb5177f99e0d37de5820aefaee3aa71dd
diff -r 98df096f2a4a -r 9802456c0ffb graphics/libv4l/patches/patch-aj
--- a/graphics/libv4l/patches/patch-aj  Wed Apr 18 21:05:30 2012 +0000
+++ b/graphics/libv4l/patches/patch-aj  Wed Apr 18 21:16:43 2012 +0000
@@ -1,15 +1,12 @@
-$NetBSD: patch-aj,v 1.3 2012/04/18 18:25:22 hans Exp $
+$NetBSD: patch-aj,v 1.4 2012/04/18 21:16:44 hans Exp $
 
 --- include/libv4l1.h.orig     2009-01-10 15:36:53.000000000 -0500
 +++ include/libv4l1.h  2009-01-10 15:37:29.000000000 -0500
-@@ -57,6 +57,19 @@ LIBV4L_PUBLIC extern FILE *v4l1_log_file
+@@ -57,6 +57,18 @@ LIBV4L_PUBLIC extern FILE *v4l1_log_file
     capture formats, like hw specific bayer compression methods).
  */
  
-+#if defined(__NetBSD__) || defined(__DragonFly__)
-+#include <sys/types.h>
-+typedef off_t __off64_t;
-+#elif defined(__sun)
++#if defined(__sun)
 +#ifdef _LARGEFILE64_SOURCE
 +typedef off64_t __off64_t;
 +#else
@@ -17,6 +14,8 @@
 +#endif
 +typedef off_t __off_t;
 +#include <sys/ioccom.h>
++#elif !defined(__off64_t)
++#define __off64_t off_t
 +#endif
 +
  LIBV4L_PUBLIC int v4l1_open (const char *file, int oflag, ...);



Home | Main Index | Thread Index | Old Index