aboutsummaryrefslogtreecommitdiff
path: root/procps/uptime.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-07-26 13:42:12 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-07-26 13:42:12 +0200
commit67905e2d7c6ee273b753af22fb22de0ebec918c1 (patch)
treecd61c7674c123307490cf1ff290ecb76a5c2905c /procps/uptime.c
parent4abcb8b0d1c41544902ccd7927148eea393be37e (diff)
downloadbusybox-w32-67905e2d7c6ee273b753af22fb22de0ebec918c1.tar.gz
busybox-w32-67905e2d7c6ee273b753af22fb22de0ebec918c1.tar.bz2
busybox-w32-67905e2d7c6ee273b753af22fb22de0ebec918c1.zip
*: work around sysinfo.h versus linux/*.h problems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/uptime.c')
-rw-r--r--procps/uptime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/procps/uptime.c b/procps/uptime.c
index 1a7da46a3..74323625d 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -25,6 +25,10 @@
25//usage: " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n" 25//usage: " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
26 26
27#include "libbb.h" 27#include "libbb.h"
28#ifdef __linux__
29# include <sys/sysinfo.h>
30#endif
31
28 32
29#ifndef FSHIFT 33#ifndef FSHIFT
30# define FSHIFT 16 /* nr of bits of precision */ 34# define FSHIFT 16 /* nr of bits of precision */