]> git.pld-linux.org Git - packages/ettercap.git/blame - ettercap-kernel_version.patch
- Should make ettercap check version of kernel sources installed, not of
[packages/ettercap.git] / ettercap-kernel_version.patch
CommitLineData
3bcaa2bb 1diff -urN ettercap-0.5.4.orig/aclocal.m4 ettercap-0.5.4/aclocal.m4
2--- ettercap-0.5.4.orig/aclocal.m4 Thu Jul 19 06:48:09 2001
3+++ ettercap-0.5.4/aclocal.m4 Thu Sep 6 18:39:46 2001
4@@ -25,8 +25,8 @@
5 AC_DEFUN(EC_LINUX_KERNEL,[
6
7 AC_MSG_CHECKING(Linux kernel version)
8- major=`uname -r | cut -f1 -d"."`
9- minor=`uname -r | cut -f2 -d"."`
10+ major=`awk -v FS='[".] '/UTS_RELEASE/ { print $2; }' < /usr/include/linux/version.h`
11+ minor=`awk -v FS='[".] '/UTS_RELEASE/ { print $3; }' < /usr/include/linux/version.h`
12 uname=`uname -r`
13 AC_MSG_RESULT($uname)
14 if test "$major$minor" -lt 20; then
15@@ -198,4 +198,4 @@
16 AC_MSG_RESULT($ac_cv_lbl_sockaddr_has_sa_len)
17 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
18 AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has sa_len])
19- fi])
20\ No newline at end of file
21+ fi])
This page took 0.064585 seconds and 4 git commands to generate.