summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorMike Frysinger2005-07-01 01:07:16 +0000
committerMike Frysinger2005-07-01 01:07:16 +0000
commitf413e241baa8a1dba0472a0c00e60315a831d315 (patch)
tree347e75eff8ffa4a109c369caba6382d069f04c00 /loginutils
parent8deb686d2e07ab812887a1a43a00ce5035c2b590 (diff)
downloadbusybox-f413e241baa8a1dba0472a0c00e60315a831d315.zip
busybox-f413e241baa8a1dba0472a0c00e60315a831d315.tar.gz
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.
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 9950988..d123d49 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -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 */
};