From: Mike Frysinger Date: Fri, 1 Jul 2005 01:07:16 +0000 (-0000) Subject: 2005-06-30 Shaun Jackman X-Git-Tag: 1_1_0~922 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f413e241baa8a1dba0472a0c00e60315a831d315;p=oweals%2Fbusybox.git 2005-06-30 Shaun Jackman * loginutils/getty.c: Include utmp.h only if CONFIG_FEATURE_U_W_TMP is defined. (getty_main): Use ISSUE only if it is defined. --- diff --git a/loginutils/getty.c b/loginutils/getty.c index 9950988f4..d123d4965 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -25,7 +25,9 @@ #include #include #include +#ifdef CONFIG_FEATURE_UTMP #include +#endif #include #include #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 */ };