[tools] m4: fix errors in shipped stdio.in.h
[openwrt/svn-archive/archive.git] / tools / m4 / patches / 100-fix-gets-removal.patch
1 --- a/lib/stdio.in.h
2 +++ b/lib/stdio.in.h
3 @@ -158,12 +158,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not
4 "use gnulib module fflush for portable POSIX compliance");
5 #endif
6
7 -/* It is very rare that the developer ever has full control of stdin,
8 - so any use of gets warrants an unconditional warning. Assume it is
9 - always declared, since it is required by C89. */
10 -#undef gets
11 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
12 -
13 #if @GNULIB_FOPEN@
14 # if @REPLACE_FOPEN@
15 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)