$NetBSD: patch-ac,v 1.4 2012/04/18 17:47:22 hans Exp $ --- include/libv4l2.h.orig 2008-09-08 14:42:22.000000000 -0400 +++ include/libv4l2.h 2008-09-08 14:43:43.000000000 -0400 @@ -22,6 +22,18 @@ #include <stdio.h> #include <unistd.h> +#if defined(__NetBSD__) || defined(__DragonFly__) +#include <sys/types.h> +typedef off_t __off64_t; +#elif defined(__sun) +#ifdef _LARGEFILE64_SOURCE +typedef off64_t __off64_t; +#else +typedef off_t __off64_t; +#endif +typedef off_t __off_t; +#endif + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */