Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 01:56:26 +0400
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-23 01:56:26 +0400
commit69d5ba2f95287a59fb31583b014474859b22025b (patch)
tree5743f607901b6f3f6a9d2e4b0be06489b8cf109d /miscutils/last_fancy.c
parenta959a2abdd5bef3dadcf653665831a14f404240c (diff)
- 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 03df8dcdd..91315d338 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", ""