add /dev/ksyms support; Markus Friedl <markus.friedl@informatik.uni-erlangen.de>

This commit is contained in:
marc 1999-03-31 23:01:04 +00:00
parent 4cf7d3a218
commit 9812567fef

View 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"