$NetBSD: patch-ad,v 1.1.1.1 2004/01/26 13:03:38 jmmv Exp $

--- src/input/libdvdnav/vm.c.orig	2003-07-19 19:55:20.000000000 +0200
+++ src/input/libdvdnav/vm.c	2003-08-24 11:25:12.000000000 +0200
@@ -35,6 +35,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/param.h>
 #include <fcntl.h>
 
 #include "ifo_types.h"
@@ -133,10 +134,11 @@
 
 static void dvd_read_name(char *name, const char *device) {
     int fd, i;
-#if !defined(__FreeBSD__) && !defined(WIN32)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(WIN32)
     off64_t off;
 #else
     off_t off;
+#define lseek64 lseek
 #endif
     uint8_t data[DVD_VIDEO_LB_LEN];
 
