2005-06-30 Shaun Jackman <sjackman@gmail.com>

* loginutils/getty.c: Include utmp.h only if
        CONFIG_FEATURE_U_W_TMP is defined.
        (getty_main): Use ISSUE only if it is defined.
This commit is contained in:
Mike Frysinger 2005-07-01 01:07:16 +00:00
parent 8deb686d2e
commit f413e241ba

View File

@ -25,7 +25,9 @@
#include <fcntl.h>
#include <stdarg.h>
#include <ctype.h>
#ifdef CONFIG_FEATURE_UTMP
#include <utmp.h>
#endif
#include <getopt.h>
#include <termios.h>
#include "busybox.h"
@ -260,7 +262,11 @@ int getty_main(int argc, char **argv)
_PATH_LOGIN, /* default login program */
"tty1", /* default tty line */
"", /* modem init string */
#ifdef ISSUE
ISSUE, /* default issue file */
#else
NULL,
#endif
0, /* no baud rates known yet */
};