Fix a compilation bug when disabling serial support.
This commit is contained in:
parent
d619861976
commit
d05b7706ed
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-11-07 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
* stage2/builtins.c (terminal_func) [!SUPPORT_SERIAL]: Disable
|
||||
the wait code, as it is usable only when serial support is on.
|
||||
Reported by Karl Hammar <karl@kalle.csb.ki.se>.
|
||||
|
||||
2001-10-27 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
JFS and XFS support is added.
|
||||
|
|
|
@ -3940,6 +3940,7 @@ terminal_func (char *arg, int flags)
|
|||
arg = skip_to (0, arg);
|
||||
}
|
||||
|
||||
#ifdef SUPPORT_SERIAL
|
||||
/* If a seial console is turned on, wait until the user pushes any key. */
|
||||
if (terminal & TERMINAL_SERIAL)
|
||||
{
|
||||
|
@ -3984,6 +3985,7 @@ terminal_func (char *arg, int flags)
|
|||
/* Expired. */
|
||||
terminal &= (default_terminal | TERMINAL_DUMB);
|
||||
}
|
||||
#endif /* SUPPORT_SERIAL */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue