diff -ur coreutils-8.12.old/lib/stdio.in.h coreutils-8.12/lib/stdio.in.h --- coreutils-8.12.old/lib/stdio.in.h 2011-04-25 11:01:29.000000000 +0200 +++ coreutils-8.12/lib/stdio.in.h 2012-07-23 16:02:17.591610452 +0200 @@ -181,7 +181,9 @@ so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@