add /dev/ksyms support; Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
This commit is contained in:
parent
4cf7d3a218
commit
9812567fef
36
sysutils/lsof/patches/patch-ksyms
Normal file
36
sysutils/lsof/patches/patch-ksyms
Normal file
@ -0,0 +1,36 @@
|
||||
--- Configure.orig Sat Feb 27 16:40:33 1999
|
||||
+++ Configure Wed Mar 31 12:13:10 1999
|
||||
@@ -1704,6 +1704,9 @@
|
||||
2.4*)
|
||||
LSOF_VERS=2040
|
||||
;;
|
||||
+ 2.5*)
|
||||
+ LSOF_VERS=2050
|
||||
+ ;;
|
||||
|
||||
*)
|
||||
echo Unknown OpenBSD release: `uname -r`
|
||||
@@ -1716,7 +1719,7 @@
|
||||
# Test for legal OpenBSD version.
|
||||
|
||||
case $LSOF_VERS in # {
|
||||
- 1020|2000|2010|2020|2030|2040)
|
||||
+ 1020|2000|2010|2020|2030|2040|2050)
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OpenBSD version: $LSOF_VERS"
|
||||
@@ -1724,7 +1727,13 @@
|
||||
exit 1
|
||||
;;
|
||||
esac # }
|
||||
- LSOF_CFGF="-DOPENBSDV=$LSOF_VERS -DN_UNIXV=/bsd"
|
||||
+ LSOF_CFGF="-DOPENBSDV=$LSOF_VERS"
|
||||
+ if test -c /dev/ksyms
|
||||
+ then
|
||||
+ LSOF_CFGF="$LSOF_CFGF -DN_UNIXV=/dev/ksyms"
|
||||
+ else
|
||||
+ LSOF_CFGF="$LSOF_CFGF -DN_UNIXV=/bsd"
|
||||
+ fi
|
||||
if test -r ${LSOF_INCLUDE}/nfs/nfsproto.h # {
|
||||
then
|
||||
LSOF_CFGF="$LSOF_CFGF -DHASNFSPROTO"
|
Loading…
Reference in New Issue
Block a user