summaryrefslogtreecommitdiff
path: root/miscutils/last_fancy.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-05-22 21:56:26 +0000
committerBernhard Reutner-Fischer2008-05-22 21:56:26 +0000
commit69d5ba2f95287a59fb31583b014474859b22025b (patch)
tree5743f607901b6f3f6a9d2e4b0be06489b8cf109d /miscutils/last_fancy.c
parenta959a2abdd5bef3dadcf653665831a14f404240c (diff)
downloadbusybox-69d5ba2f95287a59fb31583b014474859b22025b.zip
busybox-69d5ba2f95287a59fb31583b014474859b22025b.tar.gz
- untangle the implementation of the small and huge last applets
Diffstat (limited to 'miscutils/last_fancy.c')
-rw-r--r--miscutils/last_fancy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/miscutils/last_fancy.c b/miscutils/last_fancy.c
index 03df8dc..91315d3 100644
--- a/miscutils/last_fancy.c
+++ b/miscutils/last_fancy.c
@@ -7,6 +7,13 @@
* Licensed under the GPLv2 or later, see the file LICENSE in this tarball.
*/
+#include "libbb.h"
+#include <utmp.h>
+
+#ifndef SHUTDOWN_TIME
+# define SHUTDOWN_TIME 254
+#endif
+
#define HEADER_FORMAT "%-8.8s %-12.12s %-*.*s %-16.16s %-7.7s %s\n"
#define HEADER_LINE "USER", "TTY", \
INET_ADDRSTRLEN, INET_ADDRSTRLEN, "HOST", "LOGIN", " TIME", ""