From f413e241baa8a1dba0472a0c00e60315a831d315 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 1 Jul 2005 01:07:16 +0000 Subject: [PATCH] 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. --- loginutils/getty.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ }; -- 2.25.1