[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] ENABLE_FEATURE_PS_LONG related stuff: (was: error: 'now'
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2011-09-29 9:03:40
Message-ID: CAK1hOcPr2mWnSZZWFccPKBnirNqTJ8UJKkvaWUpHG-RKU6GS4g () mail ! gmail ! com
[Download RAW message or body]
On Wed, Sep 28, 2011 at 12:41 AM, Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn@axis.com> wrote:
> On Tue, 27 Sep 2011, Harald Becker wrote:
>>
>> I had such phenomenons in the past, watch for missing header files,
>> especially kernel headers ... or may be different versions of kernel
>> headers.
>
> With ENABLE_FEATURE_PS_LONG unset:
>
> procps/ps.c:696:3: error: 'now' undeclared
> procps/ps.c:697:12: error: 'info' undeclared
> --- a/procps/ps.c
> +++ b/procps/ps.c
> @@ -693,8 +693,10 @@ int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
> * We also show STIME (standard says that -f shows it, -l doesn't).
> */
> puts("S UID PID PPID VSZ RSS TTY STIME TIME CMD");
> +#if ENABLE_FEATURE_PS_LONG
> now = time(NULL);
> sysinfo(&info);
> +#endif
> }
> else {
> puts(" PID USER VSZ STAT COMMAND");
> --
Applied, thanks!
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic