mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
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:
parent
8deb686d2e
commit
f413e241ba
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user