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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
$NetBSD: patch-ab,v 1.22 2003/08/13 13:24:16 atatat Exp $
Patch for vnode/DNLC interface change courtesy of lsof maintainer.
--- Configure.orig 2003-06-11 20:55:38.000000000 -0400
+++ Configure
@@ -819,10 +819,13 @@
LSOF_CFGF="$LSOF_CFGF -DHASFDLINK"
fi # }
fi # }
- grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
- if test $? -eq 0 # {
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
then
- LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
fi # }
if test $LSOF_VERS -ge 40000 # {
then
@@ -938,6 +941,14 @@
exit 1
fi # }
fi # }
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
+ then
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
+ fi # }
LSOF_DINC="$LSOF_DINC -I`pwd`/dialects/darwin/xnu/bsd"
LSOF_DINC="$LSOF_DINC -I/usr/include"
LSOF_DINC="$LSOF_DINC -I${DARWIN_SYSDIR}/System.framework/PrivateHeaders"
@@ -1175,6 +1186,14 @@
LSOF_CFGF="$LSOF_CFGF -DHASIPv6"
fi # }
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
+ then
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
+ fi # }
LSOF_DIALECT_DIR=du
;;
@@ -1526,10 +1545,13 @@
fi # }
LSOF_CFGF="$LSOF_CFGF -DHAS9660FS"
fi # }
- grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
- if test $? -eq 0 # {
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
then
- LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
fi # }
if test $LSOF_DINC_ADD -eq 1 # {
then
@@ -2241,10 +2263,13 @@
then
LSOF_DINC="-I$LSOF_INCLUDE -I$NETBSD_SYS"
fi # }
- grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
- if test $? -eq 0 # {
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
then
- LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
fi # }
grep -q i_ffs_size ${LSOF_INCLUDE}/ufs/ufs/inode.h
if test $? -eq 0 # {
@@ -2645,10 +2670,13 @@
LSOF_CFGF="$LSOF_CFGF -DHASI_E2FS_PTR"
fi # }
fi # }
- grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
- if test $? -eq 0 # {
+ if test -r ${LSOF_INCLUDE}/sys/namei.h
then
- LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ grep -q nc_vpid ${LSOF_INCLUDE}/sys/namei.h
+ if test $? -eq 0 # {
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASNCVPID"
+ fi # }
fi # }
if test "X$OPENBSD_UVM" = "X" # {
then
|