[PATCH] ENABLE_FEATURE_PS_LONG related stuff: (was: error: 'now' undeclared (first use in this function))
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Tue Sep 27 22:41:05 UTC 2011
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
Will now compile, but not build :(
/usr/bin/ld.bfd.real: busybox_unstripped: local symbol `_dl_argv@@GLIBC_PRIVATE' in /lib/i386-linux-gnu/ld-linux.so.2 is referenced by DSO
/usr/bin/ld.bfd.real: final link failed: Bad value
Signed-off-by: Cristian Ionescu-Idbohrn <cii at axis.com>
---
procps/ps.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/procps/ps.c b/procps/ps.c
index 3815c1e..4727b21 100644
--- 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");
--
1.7.6.3
Cheers,
--
Cristian
More information about the busybox
mailing list