Re: broken regression/acct for several years

From: pluknet <pluknet_at_gmail.com>
Date: Sun, 16 Aug 2009 09:22:37 +0400
2009/8/16 pluknet <pluknet_at_gmail.com>:
> Hi.
>
> This commit - kern_acct.c,v1,94 / svn r172023 - broke
> regression/acct just before 7.0 was out by inclusion
> kernel log() function call that requires <sys/syslog.h> include,
> and some magic with kernel/userland side of syslog() since
> log() on userland side is  not present.
>
> It could be fixed by changing log() with simple printf() and
> adding <sys/limits.h> specially for regression test to
[Sorry, wrong button pressed]
to fix "LONG_MAX undefined", so it would be like:
convert.c: ../../../sys/kern/kern_acct.c
-            sed -n '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >$_at_
+           echo "#include <sys/limits.h>" > $_at_
+           sed -n '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >>$_at_

or by reverting r172023.

Thanks.

-- 
wbr,
pluknet
Received on Sun Aug 16 2009 - 03:22:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC