diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-23 01:56:26 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-23 01:56:26 +0400 |
commit | 69d5ba2f95287a59fb31583b014474859b22025b (patch) | |
tree | 5743f607901b6f3f6a9d2e4b0be06489b8cf109d /miscutils/last_fancy.c | |
parent | a959a2abdd5bef3dadcf653665831a14f404240c (diff) |
- untangle the implementation of the small and huge last applets
Diffstat (limited to 'miscutils/last_fancy.c')
-rw-r--r-- | miscutils/last_fancy.c | 7 |
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", "" |