diff -Naur grub-2.00/grub-core/gnulib/stdio.in.h grub-2.00-magellan/grub-core/gnulib/stdio.in.h --- grub-2.00/grub-core/gnulib/stdio.in.h 2010-12-01 15:45:43.000000000 +0100 +++ grub-2.00-magellan/grub-core/gnulib/stdio.in.h 2012-07-17 17:03:07.392976269 +0200 @@ -141,7 +141,9 @@ so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if HAVE_RAW_DECL_GETS _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@