diff options
author | hans <hans@pkgsrc.org> | 2012-04-18 21:16:43 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-04-18 21:16:43 +0000 |
commit | 7c9df1084de066a1ccade56a84f45e33856d1067 (patch) | |
tree | d1a47c3d94bef718ad1215159b1d61188c6cdbca | |
parent | 012b33569b0f56914ad88ec6f9141be625223ad4 (diff) | |
download | pkgsrc-7c9df1084de066a1ccade56a84f45e33856d1067.tar.gz |
Fix build on NetBSD.
-rw-r--r-- | graphics/libv4l/distinfo | 4 | ||||
-rw-r--r-- | graphics/libv4l/patches/patch-aj | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/graphics/libv4l/distinfo b/graphics/libv4l/distinfo index d8e4466c6dc..7130a58d5ee 100644 --- a/graphics/libv4l/distinfo +++ b/graphics/libv4l/distinfo @@ -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-ae) = 1bdefe4897c6edbe4049c52d963f1769bd916750 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 --git a/graphics/libv4l/patches/patch-aj b/graphics/libv4l/patches/patch-aj index b26b1ec5b0e..a0b73f4d788 100644 --- a/graphics/libv4l/patches/patch-aj +++ b/graphics/libv4l/patches/patch-aj @@ -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 @@ $NetBSD: patch-aj,v 1.3 2012/04/18 18:25:22 hans Exp $ +#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, ...); |