diff -Naur tar-1.26/gnu/stdio.in.h tar-1.26-magellan/gnu/stdio.in.h --- tar-1.26/gnu/stdio.in.h 2011-03-12 10:14:33.000000000 +0100 +++ tar-1.26-magellan/gnu/stdio.in.h 2012-09-05 16:18:10.970983103 +0200 @@ -164,7 +164,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@