2005-06-30 Shaun Jackman <sjackman@gmail.com>
authorMike Frysinger <vapier@gentoo.org>
Fri, 1 Jul 2005 01:07:16 +0000 (01:07 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 1 Jul 2005 01:07:16 +0000 (01:07 -0000)
        * 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

index 9950988f40a328a77cad949fee89d74857954e8c..d123d4965897eaf2cf752dc0128f46b8a9a4f86d 100644 (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 */
        };