summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches/patch-aa
blob: 6ae4794e68cb766e1807c15150bba6e8d5ded402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$NetBSD: patch-aa,v 1.15 2000/08/13 12:19:29 kim Exp $

--- dialects/n+obsd/dlsof.h.orig	Thu Jun 22 15:55:29 2000
+++ dialects/n+obsd/dlsof.h	Sun Aug 13 15:13:46 2000
@@ -47,6 +47,7 @@
 #include <unistd.h>
 #include <sys/filedesc.h>
 #include <sys/mbuf.h>
+#include <sys/param.h>
 
 # if	defined(NETBSDV)
 #include <sys/buf.h>
@@ -90,14 +91,12 @@
 #include <netinet/tcp_var.h>
 #include <sys/ucred.h>
 
-# if	defined(UVM)
 /*
  * Avoid conflicts with definitions in <vm/vm_param.h>.
  */
 
 #undef	FALSE
 #undef	TRUE
-# endif	/* defined(UVM) */
 
 #include <sys/vnode.h>
 
@@ -183,6 +182,9 @@
 #define _KERNEL
 #include <sys/file.h>
 #include <sys/fcntl.h>
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105030000)
+struct vop_advlock_args { int dummy; };	/* to pacify lf_advlock() prototype */
+#endif
 #include <sys/lockf.h>
 #undef	KERNEL
 #undef	_KERNEL
@@ -197,10 +199,14 @@
 #include <uvm/uvm.h>
 # endif	/* defined(UVM) */
 
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105020000)
+#include <uvm/uvm_extern.h>
+#else
 #include <vm/vm.h>
 #include <vm/vm_map.h>
 #include <vm/vm_object.h>
 #include <vm/vm_pager.h>
+#endif
 
 # if	defined(OPENBSDV)
 #  if	OPENBSDV==2030 && defined(__sparc__)