summaryrefslogtreecommitdiff
path: root/graphics/avifile/patches/patch-ad
blob: 7f4ea92d0f63805637224b25e74e8977828d3ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.1.1.1 2001/04/12 21:26:21 zuntum Exp $

--- lib/avifile/FastReadStream.cpp.orig	Sun Nov 26 18:43:55 2000
+++ lib/avifile/FastReadStream.cpp
@@ -6,7 +6,7 @@
 #include <string.h>
 #include <errno.h>
 #include <sys/types.h>
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
 #include <features.h>
 #endif
 #include <unistd.h>
@@ -16,7 +16,7 @@
 #include <stdlib.h>
 #endif
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #define lseek64 lseek
 #else
 extern "C" __int64 lseek64(int fd, __int64 offset, int);