]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix a compilation bug when disabling serial support.
authorokuji <okuji@localhost>
Tue, 6 Nov 2001 16:42:02 +0000 (16:42 +0000)
committerokuji <okuji@localhost>
Tue, 6 Nov 2001 16:42:02 +0000 (16:42 +0000)
ChangeLog
stage2/builtins.c

index fb4b93365e1cb3d3a0a56bcc7adcb41a0f7f0430..0790e4a87675dbed4b6c57bcf3db3f68ba5262b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index f6ecbd35334013b80cde88309eb4e6236271f740..2289296f72aa962429b141c5e8bfeb747bf82e01 100644 (file)
@@ -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;
 }