[BusyBox-cvs] svn commit: trunk/busybox/loginutils
vapier at busybox.net
vapier at busybox.net
Fri Jul 1 01:07:17 UTC 2005
Author: vapier
Date: 2005-06-30 19:07:16 -0600 (Thu, 30 Jun 2005)
New Revision: 10680
Log:
2005-06-30 Shaun Jackman <sjackman at 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.
Modified:
trunk/busybox/loginutils/getty.c
Changeset:
Modified: trunk/busybox/loginutils/getty.c
===================================================================
--- trunk/busybox/loginutils/getty.c 2005-07-01 01:04:32 UTC (rev 10679)
+++ trunk/busybox/loginutils/getty.c 2005-07-01 01:07:16 UTC (rev 10680)
@@ -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 @@
_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 */
};
More information about the busybox-cvs
mailing list