From 3c5fa0cfe30b7de214dbd693c9bfc10aaea868b6 Mon Sep 17 00:00:00 2001 From: okuji Date: Thu, 24 Aug 2000 07:26:03 +0000 Subject: [PATCH] include stdio.h first in builtins.c. --- ChangeLog | 6 ++++++ stage2/builtins.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 62772d1ca..6043b2694 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-08-24 OKUJI Yoshinori + + * stage2/builtins.c [GRUB_UTIL]: Include stdio.h before + shared.h. Reported by Mathieu Chouquet-Stringer + . + 2000-08-21 OKUJI Yoshinori * configure.in (--enable-serial-speed-emulation): New option. diff --git a/stage2/builtins.c b/stage2/builtins.c index 09c5f785f..01f0f95d8 100644 --- a/stage2/builtins.c +++ b/stage2/builtins.c @@ -19,6 +19,12 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* Include stdio.h before shared.h, because we can't define + WITHOUT_LIBC_STUBS here. */ +#ifdef GRUB_UTIL +# include +#endif + #include #include @@ -31,7 +37,6 @@ #endif #ifdef GRUB_UTIL -# include # include #else /* ! GRUB_UTIL */ # include