summaryrefslogtreecommitdiff
path: root/graphics/libv4l/patches/patch-ac
blob: 8418cd7655f599477c50da8281d2710f1bfcf1ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$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 */